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

What divided by 40.01 is much less than one
Can someone help me and show work I don’t get it
A private aviation helicopter's main rotor blades rotate at approximately 450 rpm. What is the angular speed of the blades of the rotor in SI units?
solvethe equation for X.2/3 - 5 = - 4x +9.​
when discovered columbus america​
Jessica has an account with a credit union. Her account earns 2.3% simple interest yearly. Exactly a year and a half ago, she opened her account with $900. How
What is the slope of a line that is perpendicular to the line whose equation is 2y = 3x - 1? -3 -2/3 -1/3
The length of the ant in inches is about 1/8 inch. Write this as a decimal. Then write the ants length in meters in standard form in centimeters and in one othe
what would the answer be to the question m - 7 < 6
why was common sense popular​