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

trace the arab-israeli conflict between 1947-1980. why has this conflict been so difficult to resolve?
WAR OF THE WORLDS QUESTION HELP ME ! Which statement best describes the narrator's attitude toward the Martians as the story progresses? A. He is terrified o
What Are The Major Objectives Of Fiscal Policy In India?
carol is 66 inches is 20 less than 2 times mindys height how tall is mindy
The greater of two numbers is 1 more than twice the smaller. Three times the greater exceeds 5 times the smaller by 10. Find the numbers
why was Old Fort Jackson built
What American invention aided the British textile industry?
PLEASE HELP5. Which of the following is true for both gas planets and terrestrial planets? (Points : 3) A) They have rings. B) They rotate in the sa
One of the three " highways of water" bordering Greece
6 2/3 as a decimal and fraction