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

please help, I don’t know to put it into words
I need help quick desperate
choose the inequality that represents the following graph​
List the 3 social conditions Dickens wanted recognized through his novels.
Are there other extinct creatures that could be brought back to life through biotechnology?
De quelles valeurs Gwynplaine fait-il preuve dans ce discours ?
What is the unit rate of km per hour in the example below? You can walk 7/10 km in 1/4 hours.
(a) Simplify 8y X 3x (b) Simplify 2c - 3y + c + 5y
what is your name.plz​
h(x)=2x+5 for h(x+3) solve for h(x+3) pls help aaaaaaaaaaaa i