Homework Statement
Jonathan is riding a bicycle and encounters a hill of height h. At the base of the hill, he is traveling at a speed vi. When he reaches the top of the hill, he is traveling at a speed vf. Jonathan and his bicycle together have a mass m. Ignore friction in the bicycle...
The question is
What will be the output?
#include<stdio.h>
int main(void)
{float y=6/4;
printf("%.1f\n",y);}
The answer is
1.0
I got that right by trusting my senses:biggrin:; but I want to understand why.