Thread: Run Quzah Run !!

  1. #1
    Registered User PutoAmo's Avatar
    Join Date
    Mar 2002
    Posts
    72

    Run Quzah Run !!

    I see you're close to hit 1K posts Q !!

    These are my 2p :

    I have some homework to be done til tomorrow. Yes, homework.

    My homework is: I have to write a program that prints all integer numbers from 0 to 9. Could you help me with that, Quzah?

    Please help me, it's homework

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    1000th post. Heh. Oh, sure, since it's my 1000th post, I'll be nice...
    Code:
    #include <stdio.h>
    #include <stdlib.h> /*fixed a warning*/
    void p(int r){p(r+1>10?exit(0),fflush(stdout):r+printf("%d",r));}
    int main(void){return p(0),0;}
    Enjoy.

    Quzah.
    Last edited by quzah; 04-23-2002 at 05:22 PM.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User PutoAmo's Avatar
    Join Date
    Mar 2002
    Posts
    72
    It took me 3 minutes before I realized you used a recursive function.

    My teacher will love it

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Originally posted by PutoAmo
    It took me 3 minutes before I realized you used a recursive function.

    My teacher will love it
    Hehe. It is rather nifty. I should make it my sig. Let me know what grade you get. The current version there should compile without any warnings.

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Re-doing a C program to run in Win2000 or XP
    By fifi in forum C Programming
    Replies: 5
    Last Post: 08-17-2007, 05:32 PM
  2. how to run an exe command in c++ and get back the results?
    By mitilkhatoon in forum C++ Programming
    Replies: 5
    Last Post: 09-21-2006, 06:00 PM
  3. calculating the mode
    By bigggame in forum C Programming
    Replies: 10
    Last Post: 06-13-2006, 03:04 AM
  4. How I can Run exe file in C++
    By palang in forum C++ Programming
    Replies: 2
    Last Post: 05-10-2006, 11:55 AM
  5. Replies: 2
    Last Post: 10-29-2002, 04:56 PM