- 1

The program needs to output the numbers 1 to 9, each on a separate line, followed by a dot: 1. 2. 3.

Programing

1st Feb 2022, 4:42 PM
oyesiji ayomide
7 Réponses
+ 4
And which language? You could do this using a for loop, or a while loop or a do/while loop.
1st Feb 2022, 5:16 PM
Ausgrindtube
Ausgrindtube - avatar
+ 1
And your try?? Well a big hint: you can use '\n'
1st Feb 2022, 4:56 PM
NEZ
NEZ - avatar
0
# In python: for i in range(1, 10): print(str(i)+".")
1st Feb 2022, 6:16 PM
Рената Ремизова
Рената Ремизова - avatar
0
This is what you should do. print("""""""""1.2.3.4.5.6.7.8.9.""""""""")
1st Feb 2022, 11:08 PM
Hafsa Ahmed(small GENUIS)💯🇬🇭🤘
Hafsa Ahmed(small GENUIS)💯🇬🇭🤘 - avatar
0
You can also use \n like someone said but I was just giving you another option
2nd Feb 2022, 11:16 PM
Hafsa Ahmed(small GENUIS)💯🇬🇭🤘
Hafsa Ahmed(small GENUIS)💯🇬🇭🤘 - avatar