homework

 avatar
Alexmegawin
c_cpp
a year ago
530 B
7
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
    int num1, num2, a;
    cout << "Enter 2 numbers \nnum1 > num2\n";
    cin >> num1;
    cin >> num2;
    if (num1 <= num2) {
        cout << "Wrong numbers";
        return 0;
    }
    if (num1 % num2 == 0) {
        a = num1 / num2;
        cout << "num1 = num2 * " << a << endl;
    }
    else {
        cout << "num1 is not even divisible by num2" << endl;
    }
    if (num1 % 5 == 0 || num2 % 2 == 0)
        cout << "You Win";
    return 0;
}