Find Maximum Number Using If Condition :C Program Find Maximum Number Using If Condition :C Program #include<stdio.h> #include<conio.h> void main() { int a,b,c,max; clrscr(); printf("Enter First Number"); scanf("%d",&a); printf("Enter Second Number"); scanf("%d",&b); printf("Enter Third Number"); scanf("%d",&c); max=a; if(b>max) max=b; if(c>max) max=c; printf("The Maximum Number is:%d",max); getch(); }
0 comments:
Post a Comment