Total members 11312 |It is currently Sun Apr 20, 2014 9:57 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

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 decimal number to octal number     -  
     convert octal number to decimal 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     -  

    All times are UTC [ DST ]



    cron





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