8. Initialize and Print Variables

Easy ⏱️ 3 min

Description

Declare 2 integer variables and initialize their values as 20 and 10.

Input Format:
NA
Output Format:
Print the stored the values as space separated.
Constraints:
NA
Sample Input:
NA
Sample Output:
20 10

Solution

#include <iostream>

using namespace std;

int main() {
    int a = 20, b = 10;
    cout << a << " " << b;
    return 0;
}