You are on page 1of 1

Program:-1 Write for finding the largest of any three numbers #include<stdio.

h> main() { int a,b,c,big; printf("Enter the three numbers:"); scanf("%d%d%d",&a,&b,&c); if(a>b) { if(a>c) big=a; else big=c; } else { if(b>c) big=b; else big=c; } printf("The largest number:%d",big); } OUTPUT Enter the three numbers: 10 9 6 The largest number:10

You might also like