If you are not going to learn it, then just fail. There is no point in succeeding where you do not want to nor have the qualifications to pass.
We will not help you cheat your way through.
Printable View
I'm willing to make a little start for you:
There.Code:int main()
{
return 0;
}
Seriously, though. You're afraid you're going to fail. Well, if you never studied the subject whatsoever, you should. This is the most basic stuff you're talking about, anyone with a remote hint of a brain should be able to do this within 5 minutes, knowing no C, with the links provided.
I am willing to help you a bit more though: You forgot to check the length of the input in your program. So it would still have false positives.