mardi 23 novembre 2021

dividing a number into one hundredth

Python program Help who knows .

My task:

Write a program that separates natural numbers into hundredths with commas (counting from the right). The program accepts a natural number as input.

Conditions:

If the number is less than three characters, the program displays the text NO.

Sample program:

Initial data: 14875 Imprint: 14,875

Intial data: 148 Imprint: NO

Aucun commentaire:

Enregistrer un commentaire