Thread: Calculating body weight.

  1. #16
    Registered User
    Join Date
    May 2010
    Posts
    4,632
    So how do you calculate the difference between 5 feet and the height value you entered?

    Jim

  2. #17
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    no. you're not allowed to give full code to help. if you had read the forum rules when you signed up, you'd know that.

    please take it down.

  3. #18
    Registered User
    Join Date
    Aug 2012
    Posts
    23
    Got it:

    Code:
    feetIn = feet * 12;
    totInch = feetIn + inches;
    inches = totInch - 60;
    ideal = inches * 5 + 110;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Weight Conversion Program
    By AKalair in forum C Programming
    Replies: 12
    Last Post: 11-21-2007, 12:31 PM
  2. Weight Change Program - Help
    By battousaih in forum C Programming
    Replies: 14
    Last Post: 10-01-2007, 04:34 PM
  3. Your Weight On Planets
    By Trekkie in forum C++ Programming
    Replies: 16
    Last Post: 10-23-2005, 11:01 PM
  4. Guaranteed weight loss
    By Glirk Dient in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 05-12-2004, 06:11 AM
  5. losing weight
    By Shadow in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 10-21-2002, 05:43 AM