#include <iostream>
using namespace std;
int main()
{
cout << "Enter a number that might be divisible by 4: " << endl;
for (int i = 0; i < 7; i++)
{
int x;
cin >> x;
if (x % 4 == 0)
cout << "It's divisible by 4!" << endl;
else
cout << "It's NOT divisible by 4" << endl;
}
return 0;
}
No comments:
Post a Comment