Find The Largest Number Among Three Numbers
QUESTION : Find the Largest Number Among Three Numbers
SOURCE CODE :-
#include <stdio.h>
int main ()
{
int num1,num2,num3;
printf (" enter three number ");
scanf (" %d%d%d",&num1,&num2,&num3);
if (num1>=num2&&num1>=num3)
{
printf("num 1 is bigger=%d ",num1);
}
else if (num2>=num1&&num2>=num3)
{
printf ("num 2 is bigger=%d ",num2);
}
else
printf (" num 3 is bigger=%d ",num3);
return 0 ;
}
INPUT :-
OUTPUT :-
------THANK YOU FOR VISITING THIS PAGE
Comments
Post a Comment