Advertisement
Guest User

Untitled

a guest
Aug 15th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int A, B;
  8.     while (true){
  9.         cout<<"Adj meg ket szamot!\n";
  10.         cin >> A >> B;
  11.         cout << "A: \t" << A << "\n";
  12.         cout << "B: \t" << B << "\n";
  13.         cout << "Maradekuk: \t" << A % B << "\n";
  14.        
  15.         if ( A % B > 0){
  16.             cout << "Nem oszthatC3. \n";
  17.         }else{
  18.             cout << "OszthatC3.\n";
  19.         }
  20.     }
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement