Question: #include using namespace std; int n; int m; int k; int main() { cin >> n; //when run pep8 program, enter an odd number then
#include using namespace std; int n; int m; int k; int main() { cin >> n; //when run pep8 program, enter an odd number then an even number k = n / 16; //integer division. Round off any fraction. m = k * 16; m = n m; //to calculate n % 16, the remainder of n divided by 16 cout << n= << n << endl; cout << n << /16 = << k << endl; cout << n << %16 = << m << endl; return 0; } convert c++ codes to pep/8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
