Untitled

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

#include <iostream>

using namespace std;


int main() {
int num1, num2, num3;

cout << "Enter First Number" << endl;


cin >> num1;
cout << "Enter Second Number" << endl;
cin >> num2;
cout << "Enter Third Number" << endl;
cin >> num3;
if (num1 > num2) {
if (num2 > num3) {
cout << num1 << " highest" << endl;
}
}
if (num1 > num3) {
if (num3 > num2) {
cout << num1 << " highest" << endl;
}
}
if (num2 > num1) {
if (num1 > num3) {
cout << num2 << " highest" << endl;
}
}
if (num2 > num3) {
if (num3 > num1) {
cout << num2 << " highest" << endl;
}
}

if (num3 > num1) {


if (num1 > num2) {
cout << num3 << " highest" << endl;
}
}

if (num3 > num2) {


if (num2 > num1) {
cout << num3 << " highest" << endl;
}
}

return 0;
}

You might also like