Array Question

This is a discussion on Array Question within the C++ Programming forums, part of the General Programming Boards category; Code: Could someone answer this: Consider: int[] scores1 = {2,5,8,10} int [] scores2 = {5,6,8,12} int result; int total; write ...

  1. #1
    Registered User
    Join Date
    May 2011
    Location
    Ireland
    Posts
    13

    Question Array Question

    Code:
    Could someone answer this:
    Consider:
    int[] scores1 = {2,5,8,10}
    int [] scores2 = {5,6,8,12}
    int result;
    int total;
    write a statement that multiplies 1st element of scores1 array by last element of the scores2 array and assisgns the result to the result variable??

  2. #2
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,649
    Guess you missed this announcement

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Array question
    By rassul in forum C Programming
    Replies: 11
    Last Post: 01-14-2011, 01:02 AM
  2. Replies: 12
    Last Post: 11-21-2010, 08:46 AM
  3. array question
    By skiabox in forum C Programming
    Replies: 3
    Last Post: 11-21-2010, 08:44 AM
  4. array question...
    By jerrykelleyjr in forum C Programming
    Replies: 14
    Last Post: 10-29-2006, 01:03 PM
  5. array question
    By ProLin in forum C++ Programming
    Replies: 5
    Last Post: 01-21-2002, 04:52 PM

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