Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int A, B;
- while (true){
- cout<<"Adj meg ket szamot!\n";
- cin >> A >> B;
- cout << "A: \t" << A << "\n";
- cout << "B: \t" << B << "\n";
- cout << "Maradekuk: \t" << A % B << "\n";
- if ( A % B > 0){
- cout << "Nem oszthatC3. \n";
- }else{
- cout << "OszthatC3.\n";
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement