C++ Example 2

in programming •  7 years ago 
#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;
}
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

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.