Advertisement
kebabikos

ssu1

Nov 13th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <windows.h>
  4.  
  5. using namespace std;
  6.  
  7. float a, b, c;
  8.  
  9. int main()
  10. {
  11.     cout << "Wprowadz liczby:" << endl;
  12.     cin>>a;
  13.     cin>>b;
  14. c = a*b;
  15.     if(c>100)
  16.     {
  17.         cout << "Wynik mnozenia tych liczb wynosi "<<c<<" i jest wiekszy od 100";
  18.     }
  19.     if(c<100)
  20.     {
  21.         cout << "Wynik mnozenia tych liczb wynosi "<<c<<" i jest mniejszy od 100";
  22.     }
  23.     if(c==100)
  24.     {
  25.         cout << "Wynik mnozenia wynosi 100";
  26.     }
  27.  
  28.     return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement