base fahceltable
This commit is contained in:
1 file changed
+10
@@ -1,4 +1,14 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(){
|
||||
int lowerF, upperF, step;
|
||||
lowerF = 0; upperF = 300;
|
||||
step = 20;
|
||||
|
||||
int fahr, cel;
|
||||
|
||||
for(fahr=lowerF; fahr<=upperF; fahr+=step){
|
||||
cel = 5 * (fahr - 32) / 9;
|
||||
printf("%d\t%d\n", fahr, cel);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user