• Курсы
  • Компилятор кода
  • Обсуждения
  • Цены
  • Teams
Menu
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

c++cpp
30th Mar 2020, 5:45 PM
PUFFIN Channel
PUFFIN Channel - avatar
2 ответов
+ 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

Часто задают такие вопросы?

Учитесь эффективнее, бесплатно:

  • Введение в Python

    7.1M учащихся

  • Введение в Java

    4.7M учащихся

  • Введение в C

    1.5M учащихся

  • Введение в HTML

    7.5M учащихся

Смотреть все курсы
Актуальное сегодня
Is this realistic enough?
1 Votes
"Which is harder to master — Machine Learning or Cybersecurity? And why?"
1 Votes
"What’s the best way to combine creativity and coding? Can storytelling improve web apps?"
1 Votes
Need friends
0 Votes
MASS N NUMBER OF OBJECT DELETION FROM A CLASS
0 Votes
I am a beginner, please teach me how to use Python
0 Votes
Python
1 Votes
Can u learn multiple language at the same time, without misplacing the formats of each with the other
0 Votes
How do you print inputs
0 Votes
Can someone please explain python for me
0 Votes