//Write a program to check largest number among three number by using Nested if else #include<stdio.h> #include<conio.h> void main() { int a,b,c; clrscr(); printf("Enter any three number:\n"); scanf("%d%d%d,&a&b&c"); if(a>b) {if(a>c) printf("Largest=%d",a); else printf("Largest=%d",c);} else {if(b>c) printf("Largest=%d",b); else printf("Largest=%d",c);} getch(); }
Comments
Post a Comment