conversion in c programming

This is a discussion on conversion in c programming within the C++ Programming forums, part of the General Programming Boards category; Hi all Havin a few probs with converting mph to m/s. Need to read a value from the keyword in ...

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    6

    Wink conversion in c programming

    Hi all

    Havin a few probs with converting mph to m/s. Need to read a value from the keyword in mph and display equivalent value in m/s on the screen.

    If anyone has any advice on this would be most appreciated.



    Thanx a million!!!

    x JIT x

  2. #2
    Registered User Micko's Avatar
    Join Date
    Nov 2003
    Posts
    712
    Well
    you should know:
    1 mile = 1.609 km
    50 mph = 1.609*50 km/h
    1km = 1000 m
    1 h = 3600s

    so 50 km/h = (50*1000/3600) m/s

    Rest is up to you.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  2. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  3. Header File Question(s)
    By AQWst in forum C++ Programming
    Replies: 10
    Last Post: 12-23-2004, 10:31 PM
  4. Do I have a scanf problem?
    By AQWst in forum C Programming
    Replies: 2
    Last Post: 11-26-2004, 05:18 PM
  5. Creation of Menu problem
    By AQWst in forum C Programming
    Replies: 8
    Last Post: 11-24-2004, 08:44 PM

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