JakubKaczmarek_123

zadanie 6

Nov 2nd, 2020
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int x;
  5. int main()
  6. {
  7.   cout << "wprowadz liczbe calkowita: " << endl;
  8.   cin >> x;
  9.   if (x%3 == 0) cout << "wprowadzona liczba jest podzielna przez 3" << endl;
  10.   else cout << "wprowadzona liczba nie jest podzielna przez 3" << endl;
  11. }
  12.  
Advertisement
Add Comment
Please, Sign In to add comment