Switch to full style
For C/C++ coders discussions and solutions
Post a reply

write a while loops performing operations on number

Sat Oct 29, 2011 8:18 pm

    I am totally lost with doing C++

    I have to write a while loops performing the following steps:
    a) Prompt the user to input two integers: firstNum and secondNum (firstNum must be less then secondNum)
    b) Output all odd numbers between firstNum and seconNum.
    c) Output the sum of all even numbers between firstNum and secondNum.
    d) Output the numbers and their squares between 1 and 10.
    e) Output the sum of the square of the odd numbers between firstNum and secondNum.
    f) Output all uppercase letters.[code][/code]



    Post a reply
      Related Posts  to : write a while loops performing operations on number
     How to write a code for sorting array of 100 number in C++     -  
     convert integer number to octal,hexadecimal number systems     -  
     convert octal number to decimal number     -  
     convert decimal number to octal number     -  
     C++ For Loops     -  
     C++ for loops     -  
     Loops and Branching     -  
     Nesting Two for Loops     -  
     Break in Nested Loops     -  
     Re: Lets Learn C++----->(Lesson 4) Loops     -