using different loop statements

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

  1. markjay23

    markjay23 New Member

    Oct 8, 2010
    Likes Received:
    Trophy Points:
    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. New Member

    Dec 20, 2009
    Likes Received:
    Trophy Points:
    EOC (exploitation of computers)..i m a Terminator.
    Not an alien!! for sure
    Home Page:
    LOLLLLLLLZZZZZZZZZZZ........pardon me Shabbir but I can't control my emotions right now...ridiculous...

    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