Skip to content
Lumen

C++ Example 2

in#programming
#include <iostream>
using namespace std;

int main()
{
    int i, j;
    double d;

    i = 10;
    j = 20;
    d = 99.101;

    cout << "Here are some values: ";
    cout << i;
    cout << ' ';
    cout << j;
    cout << ' ';
    cout << d;
    cout << "\n";

    return 0;
}
    ·in#programming·by
    $0.00
    1
    Sort:
    • yuninho profile picture

      Nice one. I almost forgot about the cin >> and cout << Good example. I want to do something similar thinking if is possible to get non computer programming students to learn some programming.

      $0.00