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

To what extent did anti-Protestantism contribute to Louis’s downfall?
Mr.Gorman spent $65 on the following art supplies . 5 pads of colored paper for $2.50 each .6 packs of markers for $5.75 each . Some jars of paint for $4.50 e
Which statement about the fall of Rome and its effect on culture and civilization in Western Europe is correct? a. The barbarian tribes adopted Latin as their c
The sum of 1/6, 2/3, and 1/4 is
Are all atoms (elements) neutral? And if not, how is the amount of electrons discovered?
Which is the definition of adhesion?
What were two ways that Islam spread through Africa?
Which of the following most likely requires intermolecular forces? A.a spider walking on the bottom of a leaf B.a rock maintaining its solid shape C.a koala usi
What is the most important reason to control the conditions ofan experiment
Which term refers to the policy of containing communism and preventing its spread into more countries? a. the Iron Curtain b. the Marshall Plan c. the Truman Do