rikardoricz

6 IF Tomasz Świątek 3BTI/2

Nov 17th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int x;
  8.  
  9.     cout << "Podaj liczbe: " << endl;
  10.     cin >> x;
  11.  
  12.     if (x%3==0)
  13.     {
  14.         cout << "Liczba jest podzielna przez 3";
  15.     }
  16.     else
  17.     {
  18.         cout << "Liczba nie jest podzielna przez 3";
  19.     }
  20.     return 0;
  21. }
  22.  
Add Comment
Please, Sign In to add comment