Answered You can hire a professional tutor to get the answer.

QUESTION

include cmath #include iostream using namespace std; int main(int argc, char* argv) { int n = 1234; int d1 = n % 10; n = n / 10; int d2 = n % 10;...

include <cmath>#include <iostream>using namespace std;int main(int argc, char* argv[]){ int n = 1234; int d1 = n % 10; n = n / 10; int d2 = n % 10; n = n / 10; int d3 = n % 10; int d4 = n / 10; cout << d1 << d2 << d3 << d4; int n2 = d1 + d2 + d3 + d4; cout << n; cout << n2; cout << n + n2; cout << endl; return 0;}Modify the program to: 1.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question