Wednesday, 5 December 2012

CPL PROGRAM 12c CODING

             BIGGEST OF THREE NUMBERS                                                       
                                                                    
CODING:                                                             
                                            
#include<stdio.h>
#include<conio.h>
void main()
{
 int a,b,c;
 clrscr();
 printf("Enter Any 3 Number");
 scanf("%d %d %d",&a,&b,&c);
 if((a>b)&&(a>c))
 {
  printf("\n %d is the greatest number",a);
 }
 else if(b>c)
 {
  printf("\n %d is the greatest Number",b);
 }
 else
 {
  printf("%d is the greatest number",c);
 }
 getch();
}

No comments:

Post a Comment