Demo entry 6760698

2

   

Submitted by anonymous on Sep 18, 2018 at 04:15
Language: C. Code size: 299 Bytes.

#include "stdio.h"

int main(int argc, char const *argv[])
{
	float fahr,celeius;
	int lower,upper,step;

	lower=0;
	upper=300;
	step=20;

	fahr=lower;
	while(fahr<=upper){
		celeius=(5.0/9.0)*(fahr-32.0);
		printf("%3.0f\t%6.1f\n",fahr,celeius );
		fahr=fahr+step;
	}
	return 0;
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).