C
crackedh
Hi,
I'm a newbie to C, and to programming in general.
My question is:
-----------------------------------------------------------------------------------------------------------------------------------------------
#include <stdio.h>
main()
{
int fahr;
for (fahr = 300; fahr >=0; fahr = fahr - 20)
{
printf("%3.0d %3.2f\n", fahr, (5.0/9.0) * (fahr -
32));
}
}
------------------------------------------------------------------------------------------------------------------------------------------------
#include <stdio.h>
main()
{
int fahr;
for (fahr = 300; fahr >=0; fahr = fahr - 20)
{
printf("%3.0f %3.2f\n", fahr, (5.0/9.0) * (fahr -
32));
}
}
I'm a newbie to C, and to programming in general.
My question is:
-----------------------------------------------------------------------------------------------------------------------------------------------
#include <stdio.h>
main()
{
int fahr;
for (fahr = 300; fahr >=0; fahr = fahr - 20)
{
printf("%3.0d %3.2f\n", fahr, (5.0/9.0) * (fahr -
32));
}
}
------------------------------------------------------------------------------------------------------------------------------------------------
#include <stdio.h>
main()
{
int fahr;
for (fahr = 300; fahr >=0; fahr = fahr - 20)
{
printf("%3.0f %3.2f\n", fahr, (5.0/9.0) * (fahr -
32));
}
}