Thread: Help with Loops

  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
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    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 08:30 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

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

Tags for this Thread