|  | 
| 
 [C]Celsius & Farenheit Conversion Table I kind of have this one worked out, somewhat.  What I'm trying to do, is create a table using a for loop.  The table will have Celsius from 0 to 100 and a table for Farenheit 32 to 212. Here's what I got: Code: /* This program prints out a conversion table for Celsuis to Farenheit (0 to 100) and Farenheit to Celsius (32 to 212).Code:  Farenheit Conversion TableCode: printf("Centigrade Conversion Table\n"); | 
| 
 Code: #include <stdio.h> | 
| 
 I just ran it and it works :thumbsup: . The only thing that I don't understand is this statement, if( ( (i+1) % 10 ) == 0 )? Can you tell me what this does? Thanks again for your help --zero2 | 
| 
 It means "if (i + 1) is a multiple of ten..." | 
| 
 It's just to make printing the output appear in nice columns of 10.  Nothing too important, look up the modulus operation. | 
| 
 Oh now I see it, ok. | 
| All times are GMT -8. The time now is 04:33 AM. | 
	Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
	
Search Engine Optimization by vBSEO 3.6.0 PL2
	© 2002-2012 Tilted Forum Project