Geometry: Point in a Rectangle?

less than 1 minute read

The code has been modified slightly and now uploaded to the site.

Question

<— Return Home

32.cpp

#include <iostream>
using namespace std;

int main(){
    int first;
    int second;

    std::cout << "Enter two integers: \n";
    std::cin >> first;
    std::cin >> second;

    if (first % second == 0){
        std::cout << first << " is divisible by " << second << "\n";
    }
    else {
        std::cout << first << " is not divisible by " << second << "\n";
    }
}

<— Return Home