Write c++ program input 3 numbers and find largest
Answers
Answered by
1
Answer -
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter any three numbers");
scanf("%d%d%d",&a,&b,&c);
if(a>b&&a>c);
{
printf("A is greater");
}
else
if (b>a&&b>c)
{
printf("B is greater");
}
else
{
printf("C is greater");
getch();
}
Similar questions