16.(C) finding the greater number among three number
#include<stdio.h>
int main(){
int a,b,c;
printf("Enter the value of \n a\n b\n c\n");
scanf("%d%d%d",&a,&b,&c);
if(a>b && a>c)
{
printf("a is greater number \n");
}
else if (b>a && b>c)
{
printf("b is greater number\n");
}
else {
printf("c is greater number\n");
}
return 0;
}
Comments
Post a Comment