Largest among three using else if #include<stdio.h> #include<conio.h> void main() { int a,b,c; printf(“Enter three values\n”); scanf(“%d%d%d”,&a,&b,&c); printf(“\n Largest value is “); if(a>b && a>c) { printf(“%d\n”,a); } elseif(b>a && b>c) { printf(“%d\n”,b); } else { printf(“%d\n”,c); } getch(); }
FOR EVERY PROGRAMMER SOME SPECIAL PROGRAMS WITH THEORY.