Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ConsoleApplication3.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include "stdafx.h"
- #include <iostream>
- #include <string>
- #include <cmath>
- using namespace std;
- int main()
- {
- int test1 = 90, test2 = 10, test3 = 87, test4 = 92;
- int average = (test1 + test2 + test3 + test4) / 4;
- cout << "the average is " << average << endl;
- cout << " Test 1 score is " << test1 << endl;
- test1 = test1 + 1;
- cout << "Test 1 score is " << test1 << endl;
- test1++;
- cout << "Test 2 score is " << test1 << endl;
- test1++;
- cout << "Test 3 score is " << test1 << endl;
- int newint = 100;
- cout << "New int =" << newint++ << endl;
- cout << "New int =" << newint << endl;
- system("pause");
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment