How to print a number with two zeros after a point? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to print a number with two zeros after a point?

Input: a=2.5, b=4, output: c=a*b, c= 10.00

30th Mar 2020, 5:45 PM
PUFFIN Channel
PUFFIN Channel - avatar
1 Answer
+ 1
PUFFIN Channel , you can format the result when you print. https://code.sololearn.com/cDhvnyK0IGa7/?ref=app
30th Mar 2020, 5:57 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar