77 902
Assignments Done
Successfully Done
In August 2019

Answer to Question #16115 in C++ for rexon rueco

Question #16115
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.
Expert's answer
#include <iostream>
using namespace std;

int main(){
int a,b;
cout<<"ENTer two both numbers, a and b\n";
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";
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!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions