Completely Solved C, C++ Programs Assignment.




C Program To Read Three Numbers And Print The Biggest Of Given Three Numbers

Filed Under:

Problem 4: C Program To Read Three Numbers And Print The Biggest Of Given Three Numbers
#include<stdio.h>
#include<conio.h>
main( )
{
int a,b,c,big=0;
clrscr( );
printf(“ENTER VALUE FOR A:”);
scanf(“%d”,&a);
printf(“ENTER VALUE FOR B:”);
scanf(“%d”,&b);
print(“ENTER VALUE FOR C:”);
scanf(“%d”,&c);
if (a>big)
big=a ;
if(b>big)
big=b;
if (c>big)
big=c;
printf (“BIGGEST OF ABOVE GIVEN THREE NUMBER IS %d”,big)
getch( );
}
C compiler: gcc 4.1.2

Back to main directory: Sample C Program | Software Practical | Solved C Assignment


Get Free Programming Tutorials and Solved assignments