177k views
4 votes
Write a program that prompts the user to input two numbers

1 Answer

4 votes

Answer:

input two numbers x and y

Step-by-step explanation:

#include <iostream.h>

# include <conio.h>

int main ()

{

int x , y;

cout<<"Enter first number ";

cin>> x;

cout<<"Enter second number";

cin>>y;

if (x > y)

cout<<"The number is ="<< x;

else

cout << "The number is =" <<y;

getch();

}

User Nmakb
by
8.1k points