1
Random lnsanity / What's up bitches.
« on: May 16, 2013, 12:30:26 am »
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#include <iostream>
using namespace std;
void divisibleBy (int x){
void divisibleBy (int x){
if (x % 5){
cout << "is divisible by five " << endl;
}else{
cout << "is not divisible by five " << endl;
}
if (x % 10){
cout << "and divisible by ten" << endl;
}else{
cout << "but not divisible by ten" << endl;
}
}
int main()
{
int b;
char Answer;
cout << "Please enter a number" << endl;
cin >> Answer;
divisibleBy(Answer);
return 0;
}