Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include <iostream>
- #include <string>
- #include <cmath>
- using namespace std;
- int main()
- {
- cout << 2.0 / 7.0 + 3.0 << endl;
- cout << sqrt(145) + 3 / 7 << endl; // Pierwiastkowanie
- cout << pow(2, 7) << endl; // Potęgowanie
- cout << abs(123) << endl; // Wartość bezwzględna
- cout << 2 / 7 << endl;
- cout << 2 % 7 << endl;
- int liczba1;
- liczba1 = 10;
- liczba1 = liczba1 + 1;
- cout << liczba1 << endl;
- liczba1++;
- cout << liczba1 << endl;
- ++liczba1;
- cout << liczba1 << endl;
- int liczba2 = 20;
- cout << liczba2++ << endl;
- cout << liczba2 << endl;
- int liczba3 = 30;
- cout << ++liczba3 << endl;
- cout << liczba3 << endl;
- int liczba4 = 40;
- cout << liczba4-- << endl;
- cout << liczba4 << endl;
- int liczba5 = 50;
- cout << --liczba5 << endl;
- cout << liczba5 << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement