/* Program to find the greater between two number */
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,g;
clrscr();
printf(“\n \t \t Finding out the Greatest Value”);
printf(” \n please enter the any one number”);
scanf(“%d”, &a);
printf(” please enter the any number again”);
scanf(“%d”, &b);
if(a>b)
printf(“the greatest number is :%d”, a);
else
printf(“the greatest number is:%d”,b)
getch();
}
#include<conio.h>
void main()
{
int a,b,g;
clrscr();
printf(“\n \t \t Finding out the Greatest Value”);
printf(” \n please enter the any one number”);
scanf(“%d”, &a);
printf(” please enter the any number again”);
scanf(“%d”, &b);
if(a>b)
printf(“the greatest number is :%d”, a);
else
printf(“the greatest number is:%d”,b)
getch();
}
No comments:
Post a Comment