summaryrefslogtreecommitdiffstats
path: root/src/chapter1/lesson5/q2.cpp
blob: 236a1be5ce11253e6bd9aac21c3290832b5b47d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <iostream>

/* This program will ask user for three numbers, store each in separate
 * variables x, y, and z respectively and print the message with their values.
 */
int main() {
	std::cout << "Enter three numbers: ";

    int x{};
    int y{};
    int z{};
    std::cin >> x >> y >> z;

    std::cout << "You entered " << x << ", " << y << ", and " << z << ".\n";

    return 0;
}