programming help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jhendrix
    New Member
    • Oct 2006
    • 9

    programming help

    Hi I recently received an assignment to make a C prgram which produces a output like:

    *****
    ****
    ***
    **
    *
  • pussystabber69
    New Member
    • Oct 2006
    • 4

    #2
    hey Jhendrix! you're too lucky because I know how to create that shitty-ass output, here's the code for ya!!!!!!!!!:

    #include<stdio. h>
    main()
    {
    int x,y;

    for (x=1;x<=5;++x) {
    printf("\n");
    for (y=1;y<=x;++y)
    printf("*"); }

    getch();
    return 0;
    }

    that's so simple!!!

    Comment

    • dynamicleo
      New Member
      • Oct 2006
      • 14

      #3
      #include<iostre am.h>
      void main(){
      for (int i = 1; i <= 5; i++){
      for(int j = i; j <= 5; j++)
      cout<< "*";
      cout<< endl;
      }
      }

      Comment

      • dynamicleo
        New Member
        • Oct 2006
        • 14

        #4
        #include<iostre am.h>
        #include<conio. h>

        void main(){
        clrscr();

        for (int i = 1; i <= 5; i++){

        for(int j = i; j <= 5; j++)
        cout<< "*";

        cout<< endl;

        }
        getch();
        }

        Comment

        Working...