rajnarayan45002
rajnarayan45002 rajnarayan45002
  • 25-02-2021
  • Computers and Technology
contestada

write a c++pogram to accept two integers and check whether they are equal or not​

Respuesta :

isyllus
isyllus isyllus
  • 02-03-2021

Program to accept two integers and check whether they are equal or not​.

#include<iostream.h>

void main( )

using namespace std;

int main( )

{

int num1, num2;

cout<< " Input the values for number1 and number2: " ;

cin>> num1 >> num2;

if (num1 == num2)

{

cout<< " Both numbers are equal";

}

else

{

cout<< " numbers are not equal" ;

}

}

Answer Link

Otras preguntas

A Train travels 240 miles in 3 hours moving at a constant speed. How far will the train be able to go in 4 hours if it continues traveling at the same speed?​
Match the forms of precipitation to their definition ------Water falls from the clouds but freezes before reaching the ground ------product of high updraft from
What type of oil pressure gauge should be used when testing oil pressure? A. Mechanical B. Bi-directional C. Digital D. Electrical
the volume of a cylinder is about 1632 in. the height of the cylinder is 24 in. what is the area of the base?
What is decimal number 227=______ in octal
9. Is the relationship shown by the data linear? If so, model the data with an equation.
NEED HELP ASAP PLEASE!
What is the relationship between finance and marketing department in a business.
3.14 is a terminating decimal true or false?
Why was the competition between rangers and farmers to settle in the Great Plains