- 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
4 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