Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C by XtR ( 15 years ago )
#include<iostream.h>

int test(int a) 
{
if (a%2) {
return 1;
}
else {
return 0;
}
}

void main() {
int x;
cout << " Hey enter number ";
cin >> x;

if (test(x)) {
cout << "not ok " ;
}
else {
cout << " ok";
}
}

 

Revise this Paste

Your Name: Code Language: