1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    17
    Trophy Points:
    0
    Occupation:
    EOC (exploitation of computers)..i m a Terminator.
    Location:
    Not an alien!! for sure
    Home Page:
    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