Computer Science, asked by gohelraj7946r, 1 month ago

Write a program to find the greatest of two numbers in turbo c++ with if else statements

Answers

Answered by GιяℓуSσυℓ
0

Answer:

#include <iostream>

using namespace std;

int main()

{

int num1, num2;

cout<<"Enter first number:";

cin>>num1;

cout<<"Enter second number:";

cin>>num2;

if(num1>num2)

{

cout<<"First number "<<num1<<" is the largest";

}

else

{

cout<<"Second number "<<num2<<" is the largest";

}

return 0;

}

Explanation:

Hope it helps you

Answered by aashritas581
0

Answer:

what is your question I have not clear these

Similar questions