Hey thanks Brett mccoy and paul herring...for the code..i actually got
the first few lines wright...but i thought it was wrong...and nope its
not my homework.....a friend gave me a few questions for loops and if
statements....and i couldnt get this question done...Thanks again guys...

Andy







--- In [email protected], "Paul Herring" <[EMAIL PROTECTED]> wrote:
>
> On Sun, Nov 9, 2008 at 2:41 AM, Brett McCoy <[EMAIL PROTECTED]> wrote:
> > On Sat, Nov 8, 2008 at 9:39 PM, Paul Herring <[EMAIL PROTECTED]> wrote:
> [...]
> >> #include <stdio.h>
> >>
> >> int main(void){
> >>    int x;
> >>    for(x=1;x<013;++x){
> >>        int o;
> >>        printf("%*c", 0xb-x, ' ');
> >>        for(o=1;o<=x;++o)
> >>            printf("%d%s",(x+o-1)%012, (x-1)?"":"\n");
> >>        for(o+=x-3;o>=x;--o)
> >>            printf("%d%s", o%10, (x-o)?"":"\n");
> >>    }
> >>    return 0;
> >> }
> >
> > Well, yeah, duh, obviously, but why are you doing his homework for
him?
> 
> I'm counting on the fact that tutors actually look at the source code
> as well as checking for correct functionality.
> 
> -- 
> PJH
> 
> http://shabbleland.myminicity.com/env
>


Reply via email to