Results 1 to 2 of 2

Thread: for loop in c

  1. #1
    Join Date
    Mar 2010
    Posts
    1

    for loop in c

    if i have a set of nos like 4 6 8 76 and so on and another set of nos 2 45 34 and so on and i want to multiply 4*2 6*45 and so on and then add the result. how can i do it using a for loop

  2. #2
    Join Date
    Nov 2008
    Posts
    1,192

    Re: for loop in c

    That's quiet simple, just add the first set of numbers in first array and the second set of number in the second array and multiply the 2 arrays using single dimensional array (i.e single dimensional matrix) multiplication method. I hope you got my point.

Similar Threads

  1. Watercooling: Single loop or Dual Loop
    By Akolekar in forum Hardware Peripherals
    Replies: 3
    Last Post: 21-10-2011, 10:52 PM
  2. Reboot Loop in Windows 7 Reboot loop and Safe mode doesn't work
    By mADiRAkSHii in forum Operating Systems
    Replies: 4
    Last Post: 25-01-2011, 07:23 PM
  3. How to use Do-While Loop in PHP?
    By Zavier in forum Software Development
    Replies: 5
    Last Post: 06-03-2010, 12:34 AM
  4. Which is best for iterator: For loop or while loop
    By Leeland in forum Software Development
    Replies: 4
    Last Post: 18-01-2010, 06:03 PM
  5. Differentiate between Do-While loop and While loop
    By REDBULL in forum Software Development
    Replies: 3
    Last Post: 26-11-2009, 10:10 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,727,292,945.59495 seconds with 17 queries