Generating random numbers and more plz | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
- 1

Generating random numbers and more plz

1) Generate 10,000 random integer numbers in range [10,100]. 2) Count those numbers whoā€™s digit at 10ā€™s position is greater than digit at 1ā€™s position. 3) ļæ¼ļæ¼ Count those numbers whoā€™s digit at 10ā€™s position is less than digit at 1ā€™s position. 4) Display those numbers whose digit at 10ā€™s position is the same as 1ā€™s position. Display 5 such numbers per line. 5) Display count results from 1) and 2) 6) Calculate and display the ratio of the first count the second account and percentage format. Around this race your number to keep two positions after the decimal point. For example if the first count is 50, and second count is 30, the ratio will be 166.67%ļæ¼ļæ¼ ļæ¼

10th Nov 2020, 6:59 PM
Nini Jane
Nini Jane - avatar
3 Respostas
+ 3
Is this for somthing your studying?
10th Nov 2020, 10:33 PM
D_Stark
D_Stark - avatar
0
I really lost please help, i am a new student and its so hard to learn online so please help me
10th Nov 2020, 7:13 PM
Nini Jane
Nini Jane - avatar
0
okay sorry
11th Nov 2020, 7:15 PM
Nini Jane
Nini Jane - avatar