Skip to content

Instantly share code, notes, and snippets.

@wbzyl
Created October 23, 2011 12:34
Show Gist options
  • Save wbzyl/1307315 to your computer and use it in GitHub Desktop.
Save wbzyl/1307315 to your computer and use it in GitHub Desktop.
/* wypisz zestawienie temperatur Fahrenheita-Celsjusza
dla f = 0,20,...300; pętla for */
#include <stdio.h>
int main() {
int fahr;
for (fahr=0; fahr<=300; fahr=fahr+20) {
printf("%3d%6.1f\n",fahr,(5.0/9.0)*(fahr-32));
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment