62 556
Assignments Done
98,8%
Successfully Done
In June 2018

Answer to Question #16608 in Action Script | Flash | Flex | ColdFusion for DAVID

Question #16608
Write a program that reads three integer number from keyboard and print only when all 3 are equal. the program should stop when a negative integer in entered.
Expert's answer
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int first, second, third;&
cout << "Enter first number" << endl;
cin >> first;
cout << "Enter second number" << endl;
cin >> second;
cout << "Enter third number" << endl;
cin >> third;

if (first == second == third) {
& cout << "Numbers are equal" << endl;
}

getch();
return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions