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

Which of the following nations currently possess nuclear weapons? Select all that apply.
the first settlers to settle the area that is now new York were​
The efficiency loss of a tax is the net benefit society gives up because
draw a pair of vertical angles with a given measure
WHAT IS THE ONLY WAY TO CONFIRM A CHEMICAL CHANGE HAS TAKEN PLACE
If Q(x) = 4x^2 + 5x -7, find Q(-1)
Under the shah, Iran was governed as a... A. Military state B. Dictatorship C. Islamic republic D. Democracy
A moving company is called into a building and asked to relocate 520 bricks to a location 15 meters above the ground. If each brick is 4 kilograms, what amount
I have a ribbon that is 3/4 yard long.I will use 1/2 of that. What length of the ribbon will I use
What type of detail must always be citied