Thread: Working with Arrays

  1. #1
    Registered User
    Join Date
    Dec 2018
    Posts
    1

    Working with Arrays

    Deleted.
    Last edited by merotti; 12-15-2018 at 11:57 PM. Reason: Wrong Code

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    3,688
    Try dividing by 3.0 instead of 3.
    You need to lookup integer division to know what was happening.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  3. #3
    Registered User rstanley's Avatar
    Join Date
    Jun 2014
    Location
    New York, NY
    Posts
    680
    Quote Originally Posted by merotti View Post
    Deleted.
    Please don't delete a posting. Let others learn from the code and resposes.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compare two char arrays is not working
    By jaxy in forum C Programming
    Replies: 9
    Last Post: 12-04-2016, 12:32 PM
  2. Working out a factorial using arrays
    By Elessar in forum C Programming
    Replies: 4
    Last Post: 11-27-2013, 12:31 PM
  3. Help working with functions, structures, and arrays
    By leway in forum C Programming
    Replies: 3
    Last Post: 05-09-2010, 05:24 PM
  4. working with arrays
    By brianptodd in forum C++ Programming
    Replies: 1
    Last Post: 11-08-2002, 08:46 PM
  5. Working with arrays of structures, need advice...
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 08-14-2002, 08:38 AM

Tags for this Thread