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

Evaluate each expression for g = -7 and h = 3 and match it to its value. 1. g + h -10 2. g - h -4 3. h - g -21 4. gh 2 5. g + h2 10 6. g2 - h 46
Explain how to write a function rule from table below. Then write function rule. (X) 2, 4, 6 (Y) 1, 0, -1
The United States government is formed based on which theory of government
Which geographical factor attracted traders to East Africa, leading to the creation of Swahili culture? A. The vast and fertile Nile valley, located in East Afr
which of these factors was not a reason why european colonists purchaed african slaves as a source of labor
Organizational behavior draws heavily on personality and motivation studies from what other discipline
what were the events that led to the development and use of Kirtland Air Force base
Which of the following is most likely to be the best conductor of electricity? oxygen chlorine aluminum chromium
Please select the word from the list that best fits the definition The energy of motion
Which expressions are monomials? – 4 + 6 b + 2b + 2 (x – 2x)2 (rs)/(t) 36x2yz3 ax x(1)/(3)