Exforsys
+ Reply to Thread
Results 1 to 3 of 3

For Loops in Action

This is a discussion on For Loops in Action within the C Sharp forums, part of the Programming Talk category; OutPut Window should show the following , Use only For Loops: 1. * ** *** **** ***** ****** ******* ******** ...

  1. #1
    pambatman is offline Junior Member Array
    Join Date
    Apr 2007
    Answers
    1

    Exclamation For Loops in Action

    OutPut Window should show the following ,
    Use only For Loops:


    1.
    *
    **
    ***
    ****
    *****
    ******
    *******
    ********

    2.
    **********
    *********
    ********
    *******
    ******
    *****
    ****
    ***
    **
    *




  2. #2
    uKean_Dean is offline Junior Member Array
    Join Date
    Apr 2007
    Answers
    1
    Is this a question or Quiz ?


  3. #3
    dhanasweet is offline Junior Member Array
    Join Date
    Apr 2007
    Answers
    1
    for(i=0;i<5;i++)
    {
    for(j=0;j<i;j++)
    pritf(" * ");
    printf("\n");
    for(ii=5;i>0;i--)

    {
    for(j=i;j>0;j--)
    printf("*");
    printf("\n");
    }


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...