Help with Loops

This is a discussion on Help with Loops within the C++ Programming forums, part of the General Programming Boards category; Hi, so I am taking an intro to programming class online for a requirement and I am stuck on one ...

  1. #1
    Registered User
    Join Date
    Jul 2011
    Posts
    1

    Help with Loops

    Hi, so I am taking an intro to programming class online for a requirement and I am stuck on one of the assignments. I have to write a program converting the number of kilometers to miles using the while, for and do loop.
    I have set up the beginning but one I put in a code for the first loop (while) it keeps giving me an error.
    Can someone help me start it out?
    thanks

  2. #2
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,528
    Quote Originally Posted by shesallcali View Post
    I have to write a program converting the number of kilometers to miles using the while, for and do loop.
    Why do you need loops for converting between units? Just multiply the required factor .

    I have set up the beginning but one I put in a code for the first loop (while) it keeps giving me an error.
    ....
    Unless you are confident that someone here is a long distance mind reader, you should post what you did, and the exact error(not what you understood from it)

    Can someone help me start it out?
    Yes.
    Last edited by manasij7479; 07-04-2011 at 09:30 PM.
    Manasij Mukherjee | gcc-4.9.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 06-01-2011, 05:19 PM
  2. loops, menu loops
    By gloworm in forum C Programming
    Replies: 17
    Last Post: 04-12-2010, 08:59 PM
  3. Loops
    By gloworm in forum C Programming
    Replies: 2
    Last Post: 04-03-2010, 11:27 AM
  4. Loops
    By Dt7 in forum C++ Programming
    Replies: 3
    Last Post: 10-23-2004, 07:11 PM
  5. While, For loops
    By DeepFyre in forum C++ Programming
    Replies: 3
    Last Post: 10-11-2004, 10:35 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21