Computer Science, asked by SinghKartiki, 19 days ago

Write a program to state whether the number is small,big or equal.

Answers

Answered by ArchBTW
0

Answer:

#include <iostream>

using namespace std;

int main() {

 int num1, num2;

 cout << "Enter first number" << endl;

 cin >> num1;

 cout << "Enter second number" << endl;

 cin >> num2;

 if (num1 > num2) {

   cout << num1 << " is bigger" << endl;

 } else if (num1 == num2) {

   cout << num1 << " and " << num2 << " are equal" << endl;

 } else if (num2 > num1) {

   cout << num2 << " is bigger" << endl;

 }

 return 0;

}

Explanation:

Hope it helps :)

Similar questions