Computer Science, asked by matthewballance, 11 months ago

Write a program that takes three numbers as input and prints the largest.

Sample run:

Enter a number: 20
Enter a number: 50
Enter a number: 5
Largest: 50

Answers

Answered by mani2019
0

Answer:

#include<iostream.h>

void main()

{

int n, m,o;

cout<<" enter any no";

cin>>n;

cout<<" enter no:";

cin>>m;

cout<<"enter no:";

cin>>o;

{ if(n>m&&o)

{ cout<<n;}

else if(m>n&&o)

{ cout<<m;}

else {cout<<o;}

}

}

Answered by olgalidiaj74
0

Answer:

i have the exact same question on edhesive.com but this is'nt the correct answer can you solve it in python?

Explanation:

Similar questions