archkris8066 archkris8066
  • 13-11-2019
  • Computers and Technology
contestada

Write a program that prompts the user to input two numbers

Respuesta :

kalsoomtahir1 kalsoomtahir1
  • 14-11-2019

Answer:

input two numbers x and y

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();

}

Answer Link

Otras preguntas

Two groups of students were asked how many pets they had. The table below shows the numbers for each group: Company A 1 2 1 1 3 5 4 2 3 Company B 3 2 3 2 2 2
Last week, Janet used 4 cups of flour to make pizza dough. This week, she uses 3/8 the amount of flour as last week. Which statement is true about the amount of
Write a rule for solving equations like x - 4 = 7
In a hospital there are 56 TB patients. The patients are grouped with respect to their ages. Class Boundaries Frequency 5-10 8 10-15 9 15-20 15 20-
The intercommunication of many simple units in the brain is evidence of the:
What is a correct congruence statement for the triangles shown?
House 1 2 3 4 5 6 7 8 Size 1025 1288 2344 988 12,985 1500 1077 2455 The table shows the
what is the answer for this problem? the revenue from selling x shirts is r(x)=12x. the cost of buying x shirts is c(x)=5x+20. the profit from selling x shirts
Which unit of weight is the best choice to measure a pen?
How many possible combinations comes from a word with five letters?