rikardoricz

zad6 Tomasz Świątek 3bTI/2

Oct 27th, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.53 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     float x;
  8.     float y;
  9.  
  10.     x = 27;
  11.     y = 5.7;
  12.  
  13.     cout << "Wartosc zmiennej x: " << x << ", wartosc zmiennej y:" << y << endl;
  14.     cout << "Suma x: " << x << " i y: " << y << " wynosi: " << x + y << endl;
  15.     cout << "Roznica x: " << x << " i y: " << y << " wynosi: " << x - y << endl;
  16.     cout << "Iloczyn x: " << x << " i y: " << y << " wynosi: " << x * y << endl;
  17.     cout << "Iloraz x: " << x << " i y: " << y << " wynosi: " << x / y << endl;
  18.     return 0;
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment