- Joined
- Sep 29, 2016
- Posts
- 1,600
- Solutions
- 6
- Reaction
- 1,480
- Points
- 649
Deleted
Last edited:
Pasama na rin po
Write a program that will calculate the number of cans of red and blue paint required to paint two eccentric circles. The inner circle is painted red while the outer circle is painted blue. An area of 5 can consume 1 can of paint.
Write a program that will ask for a number in double type. Your program will separately display the whole part and fractional part of number.
Illustration:
Enter a number: 12.7564
The whole part of the number: 12
The fractional part of the number: 0.7564
Pasama na rin po
Write a program that will calculate the number of cans of red and blue paint required to paint two eccentric circles. The inner circle is painted red while the outer circle is painted blue. An area of 5 can consume 1 can of paint.
Write a program that will ask for a number in double type. Your program will separately display the whole part and fractional part of number.
Illustration:
Enter a number: 12.7564
The whole part of the number: 12
The fractional part of the number: 0.7564