Saturday, June 29, 2013

Write a program to find the greatest of 2 no?

Program:
#include<stdio.h>
#include<conio.h>

void main()
{
int no1,no2;
clrscr();
printf("\n enter the  no1 and no2 ");
scanf("%d%d",&no1,&no2);

if(no1>no2)
printf("\n the %d  is greater",no1);
elseprintf("\n the %d is greater",no2);
getch();
}

Output:
image



Like the Post? Do share with your Friends.

No comments:

Post a Comment