using different loop statements

Discussion in 'C' started by markjay23, Oct 8, 2010.

  1. markjay23

    markjay23 New Member

    Joined:
    Oct 8, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hello guys, i do need your help in order to comply my project in our programming subject. it is only a simple program but for me it is already too difficult.. the questions goes this way..

    1.) write a program to list the numbers from 0 to 25, their squares and third power. the output should be in the column.(do while loop)

    2.)write a program that reads in a number n and then outputs the sum of the squares of the numbers from 1 to n. if the input is 3. for example, the output should ask the user wishes to repeat the entire process or not. use at least two different loop statements.

    3.) write a program that will display all even numbers from 2 to 28 and compute the sum of all even numbers.
     
  2. techgeek.in

    techgeek.in New Member

    Joined:
    Dec 20, 2009
    Messages:
    572
    Likes Received:
    19
    Trophy Points:
    0
    Occupation:
    EOC (exploitation of computers)..i m a Terminator.
    Location:
    Not an alien!! for sure
    Home Page:
    http://www.techgeek.in
    LOLLLLLLLZZZZZZZZZZZ........pardon me Shabbir but I can't control my emotions right now...ridiculous...

    @markjay23
    I better suggest you to take the help of a class 9 student.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice