## [Solved] how to separate number using javascript? [closed]

Since your numbers are 2 digits max you can try this approach. First divide the number by 10 then for example if we divide 21 by 10 we get 2 and some reminder with math.floor we get rid of the reminder just 2 is left then we multiply 2 by 10 we get 20 that … Read more

## [Solved] how to separate number using javascript? [closed]

Introduction JavaScript is a powerful programming language that can be used to manipulate numbers in a variety of ways. One of the most common tasks is to separate a number into its individual digits. This can be done using a variety of methods, depending on the desired outcome. In this article, we will discuss how … Read more

## [Solved] Loop to write a cimma separated list of items [closed]

Just check where you are in your loop to know if you need to print the comma. public static void Test() { for (int i = 49; i >= 1; i–) { Console.WriteLine(i + (i != 1 ? “,” : “”)); } Console.ReadLine(); } solved Loop to write a cimma separated list of items [closed]