Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- double kilograms = 0;
- double percentOfKilograms = 17;
- double sum = 0;
- printf("Input your kilograms: ");
- scanf("%lf", &kilograms);
- sum = (kilograms * percentOfKilograms) / 100;
- printf("Your kilograms on the moon is : %.2f", sum);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement