Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- float x;
- float y;
- x = 27;
- y = 5.7;
- cout << "Wartosc zmiennej x: " << x << ", wartosc zmiennej y:" << y << endl;
- cout << "Suma x: " << x << " i y: " << y << " wynosi: " << x + y << endl;
- cout << "Roznica x: " << x << " i y: " << y << " wynosi: " << x - y << endl;
- cout << "Iloczyn x: " << x << " i y: " << y << " wynosi: " << x * y << endl;
- cout << "Iloraz x: " << x << " i y: " << y << " wynosi: " << x / y << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment