Thread: C Language Call for Help

  1. #1
    Registered User
    Join Date
    Mar 2018

    C Language Call for Help

    Dear Forum,
    My name is Russell and I am new to this c language and have an assignment that I need help with due sunday final week of class. The program is set to ask for rainfall total per month for a span of 5 years. What I need to do is calculate the sum of all those totals over the span of 5 years using a loop and function I think I just dont know. Im so lost. I am desperate to get this done any one who would care to lend a helping hand I'd greatly appreciate it.


  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    So what have you learnt so far in class?

    If you can read in a single rainfall for one month, then the rest is just a loop.

    Regardless of your timescales, desire, knowledge (or lack thereof), you need to show some actual effort to show you know something.

    We're not just going to dump a ready answer.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Apr 2017
    Be sure to initialize sum to zero (outside the loop) before you start adding to it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 21
    Last Post: 05-02-2017, 05:28 PM
  2. Importance of english language in programming language
    By Lea Pi in forum General Discussions
    Replies: 10
    Last Post: 04-17-2015, 07:43 AM
  3. How to create DLL file in C language and call from C and VB
    By karthickbabu in forum C Programming
    Replies: 2
    Last Post: 10-24-2007, 07:50 AM
  4. What's the Difference Between a Programming Language and a Scripting Language?
    By Krak in forum A Brief History of
    Replies: 23
    Last Post: 07-15-2005, 04:46 PM

Tags for this Thread