0

pls can i get a code for the following example

1
**
234
****
56789
******

7
Contributors
8
Replies
66
Views
1 Year
Discussion Span
Last Post by Mayukh_1
Featured Replies
  • 2
    ddanbe 2,525   1 Year Ago

    No. Read More

  • 4

    printf("1\n**\n234\n****\n56789\n******\n"); Read More

  • 1

    **dbfud1988**: I know you meant well, but please do not just hand out code like this. Doing so goes against the 'no cheating' policy here at DaniWeb. We can assist and give advice, but we try to avoid simply answering homework assignments for students, as it interferes with the learning … Read More

  • 1

    I am at a loss to understand what you are trying to say. If you are 'not interested' in following the rules of the forum, I think you will find yourself banned by the moderators rather quickly. I'm not at all clear as to what the second sentence is meant … Read More

0

I think you need to give more detail on what you want and also you have to show what you have so senior friend call help you out with the basic you have

-2
it's code

int main(){

int i,j,k;

int count = 0;

for( i=0; i<10; i++ ){

    if( i%2 == 0 )
        for( j=0; j<i; j++ ){
            printf("*");
        }
    else
        for( k=0; k<i; k++ ){
            count++;
            printf("%d",count);
        }

    if( i!= 0)
        printf("\n");
}

return 0;
}

Edited by dbfud1988

Attachments 32.png 2.34 KB
1

dbfud1988: I know you meant well, but please do not just hand out code like this. Doing so goes against the 'no cheating' policy here at DaniWeb. We can assist and give advice, but we try to avoid simply answering homework assignments for students, as it interferes with the learning process. Tru,e there are borderline instances, and nearly everyone here has overstepped that line at some point or another, but this is a pretty clear-cut instance where providing code gratis is a Bad Thing.

Edited by Schol-R-LEA

-2

What policies are not interested in the first If my second post will no longer adversely impact made Third I'm not American

1

I am at a loss to understand what you are trying to say. If you are 'not interested' in following the rules of the forum, I think you will find yourself banned by the moderators rather quickly. I'm not at all clear as to what the second sentence is meant to refer to; it simply makes no sense in this context.

As for not being American, most of the posters here are not, either, yet the rules apply to everybody. It has nothing to do with nationality, and everything to do with Daniweb's policies.

This article has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.