Write a C++ program that prompts the user to enter values for a b and c.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#include <iostream> using namespace std; int main() { int a; int b; int c; cout << "Please enter the value for a:" <<endl; cin>>a; cout << "Please enter the value for b:" <<endl; cin>>b; cout << "Please enter the value for c:" <<endl; cin>>c; } |
Output
Please enter the value for a:
3
Please enter the value for b:
4
Please enter the value for c:
9