Thread: why am i getting a garbage value also i need you to criticize my program

  1. #16
    Registered User
    Join Date
    Feb 2008
    Posts
    62
    i think i have found a way to do it i should not set (run and i ) to zero.

  2. #17
    Registered User
    Join Date
    Feb 2008
    Posts
    62
    yes he printed zero for the avg. when he compile the program. every value was zero and when he enter a number the avg was working

  3. #18
    Registered User
    Join Date
    Jan 2008
    Posts
    290
    Is there some rule that you aren't allowed to use arrays or structs?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Issue with program that's calling a function and has a loop
    By tigerfansince84 in forum C++ Programming
    Replies: 9
    Last Post: 11-12-2008, 01:38 PM
  2. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 01:41 PM
  3. Replies: 4
    Last Post: 02-21-2008, 10:39 AM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM