Programming Competition with Friends

PAL_Kolya

myVMKPal Creator
myVMKPal Creator
#1
So I'm having a competition with my friends for who can make this program in the shortest amount of lines, keeping to standard indentation and line breaks and such. No putting the whole program on one line ;) The program is a fairly simple one.

In C, write a program that can read a multi-line file, displaying 20 lines at a time, asking the user after each 20 if they want to view more lines. Actually, this is an exercise for my computer science class, but hey. We turned it into a friendly competition anyways.

The record as of 9:30 PM (MST) was 17 lines.

I did it in 10. (View the code here)

Question
Has anyone else tried a competition like this with your friends? (If you haven't, try it. It's quite fun)
 
Top