Pages

Saturday, 19 May 2012

program to find out the Greater value


FOR LOOP
35/*Write a program to find out the Greater value*/

#include<stdio.h>
#include<conio.h>
main()
{
int a,b;
clrscr();
printf("Enter First Value:");
scanf("%D",&a);
printf("Enter Second Value:");
scanf("%d",&b);
if(a>b)
{
printf("Greater Value is %d",a);
}
else
{
printf("Greater Value is %d",b);
}
getch();
}

No comments:

Post a Comment