Computer Science, asked by arshdeepbajwa1322, 11 months ago

Write c++ program input 3 numbers and find largest

Answers

Answered by Anonymous
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