#include <stdio.h>
void main()
{
int num1, num2, num3, max;
printf("Enter three numbers: ");
scanf("%d%d%d", &num1, &num2, &num3);
if(num1 > num2)
{
if(num1 > num3)
{
max = num1;
}
else
{
max = num3;
}
}
else
{
if(num2 > num3)
{
max = num2;
}
else
{
max = num3;
}
}
printf("Maximum among all three numbers = %d", max);
}
Code Example |
---|
C :: transpose of matrix using c program |
C :: roll binary c |
C :: save numpy array to text file |
C :: c program for threaded binary tree |
C :: print boolean value in c |
C :: c code to python code converter online |
C :: how to auto run something on cmd |
C :: c how to get an integer from user input |
C :: types of instruction and there meaning in c |
C :: take array as input in c |
C :: successeur nombre chaine |
C :: C percentage program |
C :: clrscr in c |
C :: count number of vowels in a string in c |
C :: c define array size |
C :: %d in c |
C :: write array of char to file in c |
C :: c syntax |
C :: bitwise operators in c |
C :: space x |
C :: C Passing Pointers to Functions |
C :: add_to_cart how to call it woocommerce |
C :: simple calculator, using switch statement in C |
C :: how to use malloc in c |
C :: do...while loop c |
C :: what is c |
C :: faire une facture en langage c |
C :: delay in c programming for linux |
C :: esp32 dhcp server |
C :: struct in struct |