








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









If you want the user to input an integer value into your program for a variable named number, what are two lines of code you could write to ask the user to do it and to input the value into yourwhat are two lines of code you could write to ask the user to do it and to input the value into yo
Char: 1 byte Int: 4 byte Double:
8 byte
system("pause"); }
#include
cin >> val2; if (val1 > val2) { cout << "The value " << val1 << " is largest"; cout << "The value " << val2 << " is smallest"; } else { cout << "The value " << val2 << " is largest"<<endl; cout << "The value " << val1 << " is smallest"<<endl; } sum = val1 + val2; cout <<"The sum of values is "<< sum << endl; difference = val1 - val2; cout <<"The difference of values is "<< difference << endl; product = val1*val2; cout <<"The product of values is "<< product << endl; ratio = val1 / val2; cout <<"The ratio of values is "<< ratio << endl; system("pause"); } Output:
#include
#include
#include
#include
t11300\n1993\t16200\n"; system("pause"); }
#include