vendredi 2 octobre 2020

How to keep the end 0 when multiply it by a number in c++

I have a program like this

   cin >> input;
   input *= x (a random number just dont care)
   cout << input;

So everyting works fine until the input number is 00 then it prints 0

How can you keep the other number 0 ? Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire