Total members 11365 |It is currently Tue Oct 21, 2014 4:06 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R

All times are UTC [ DST ]



  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]


    Author:
    Post new topic Reply to topic  [ 1 post ] 

      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     -  
     Nesting Two for Loops     -  
     Loops and Branching     -  
     Break in Nested Loops     -  
     Re: Lets Learn C++----->(Lesson 4) Loops     -  

    All times are UTC [ DST ]









    Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
    All copyrights reserved to codemiles.com 2007-2011
    mileX v1.0 designed by codemiles team