If..elif..Else
Write a program to print the greatest number among 3

#include<stdio.h> #include<conio.h> void main() { int n1,n2,n3; clrscr(); printf("Enter numbers"); scanf("%d%d%d",&n1,&n2,&n3); if (n1 >= n2 && n1 >= n3) printf("%.2lf is the largest number.", n1); else if (n2 >= n1 && n2 >= n3) printf("%.2lf is the largest number.", n2); else printf("%.2lf is the largest number.", n3); return 0; }
Write a program to print the result if % is greater than 75 print distinction or if it's 60<75 print first class, if 50<60 print 2nd class, 40<50 print 2nd class, less than 35 fail
#include<stdio.h> #include<conio.h> void main() { float per; clrscr() printf("Enter the percentage"); scanf("%f",&per); if (per>=60); printf("distinction") else if (per






