View difference between Paste ID: RRhF8eeT and c4BS2jWh
SHOW: | | - or go back to the newest paste.
1
#include <stdio.h>
2
3
int main(void)
4
{
5-
  float fahr, celsius;
5+
  float c = 0;
6-
  int lower, upper, step;
6+
  while (c <= 300) {
7
    printf("%3.0f %6.1f\n", c, c * (9.0/5.0) + 32);
8-
  lower = 0;
8+
    c += 20;
9-
  upper = 300;
9+
10-
  step = 20;
10+
11
  return 0;
12-
  fahr = lower;
12+