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.
1
Expert's answer
2012-10-26T10:56:04-0400
#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; }
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment