c++ program that reads two integers and then uses the conditional expression operator to print either "multiple" or "not" according to whether one of the integers is multiple of the other.
1
Expert's answer
2012-10-09T09:16:45-0400
#include <iostream> using namespace std;
int main(){ int a,b; cout<<"ENTer two both numbers, a and b\n"; cin>>a>>b; if (a*a == b) cout<< "a is multiply of b\n"; else if (b*b == a) cout<< "b is multiply of a\n"; else cout<<"no one integer is multiple of another\n"; system("pause"); return 0; }
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment