WAP for greatest among two numbers.
Program:
Program:
#include<conio.h>
int main()
{
int a,b,c; //Declaring Variable.
printf("\n Enter two Numbers: "); //For printing
scanf("%d %d",&a,&b); //For Input.
c=(a>b)?a:b;
printf("\n The Greatest number is : %d",c); //For printing
getch(); //Getting a character or waiting for key press.
return 0;
return 0;
}
No comments:
Post a Comment