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

how many point of parallel sides does the trapezoid have
what number can be written as 40+5?
alice baked a certain number of pies. she gave 1/8 of the pies to her friends and 1/4 of the remainder to her neighbor. she was left with 63 pies. how many pies
For any two nonzero integers, the product and quotient have the same sign. True or False
What would be the impact on the environment if an artificial virus that attacked and destroyed chloroplasts in plant cells was accidentally released by a resear
23% of 432 students equals how many students?
Jonas cut a piece of rope into 6 pieces that were each 5 3/8 inches long how long was the original piece of rope?
Si al resultado de la diferencia de dos numeros le suma el producto de dichos numeros nos da 50. Hallar los numeros: a)7 y 5 b)7 y 8 c)8 y 6
Real life example of chloroplasts
Write the equation for the vertical line that contains point E(–7, 7). Choose one answer. a. y = –7 b. y = 7 c. x = 7 d. x = –7