Find Maximum Number From Three Number Using Logical Operator : C Program Find Maximum Number From Three Number Using Logical Operator : C Program #include<stdio.h> #include<conio.h> void main() { int a,b,c; clrscr(); printf("Enter Three Numbers:"); scanf("%d%d%d",&a,&b,&c); if(a>b&&a>c) printf("Maximum number is %d",a); else if(b>a&&b>c) printf("Maximum Number is %d",b); else printf("Maximum Number is %d",c); getch(); }
0 comments:
Post a Comment