Sample program doesn't display all numbers. Help!

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2006
Posts: 357
Reputation: death_oclock will become famous soon enough death_oclock will become famous soon enough 
Solved Threads: 37
death_oclock's Avatar
death_oclock death_oclock is offline Offline
Posting Whiz

Re: Sample program doesn't display all numbers. Help!

 
0
  #11
Dec 24th, 2008
Umm, that sounded pretty unnecessary. Try:
  1. printf("row %d sum = %d\n", r + 1, tot);
Keep the loops the same. It will start the labeling at 1 (0 + 1) and go to 3 (2 + 1).
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 146
Reputation: devnar will become famous soon enough devnar will become famous soon enough 
Solved Threads: 16
devnar's Avatar
devnar devnar is offline Offline
Junior Poster

Re: Sample program doesn't display all numbers. Help!

 
0
  #12
Dec 24th, 2008
Originally Posted by death_oclock View Post
Umm, that sounded pretty unnecessary. Try:
  1. printf("row %d sum = %d\n", r + 1, tot);
Keep the loops the same. It will start the labeling at 1 (0 + 1) and go to 3 (2 + 1).
I guess that was a li'l too much information, but he wasn't just asking about the labeling(I thought it would be too obvious a thing to ask). I assumed he was talking about array subscripts. Oh well...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC