Mega Code Archive
Categories
/
C
/
Data Type
Working with float
#include
int main(void) { float weight; printf("Enter your weight: "); scanf("%f", &weight); printf("weight on the moon: %f", weight * 0.17); return 0; }