Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcjęDyskusje Q&A
GregorianCalendar
0 głosów
1 OdpowiedźJAVA
0 głosów
1 OdpowiedźCan anyone help me to code this
Write a method 'timesTable()' which accepts an integer value num from the keyboard and uses it to print 'times table' of itself in a structured format. Your output must include a header row. For example, if the user enters 5, your program's output should be:
5 Times Table
1 5 5
2 5 10
3 5 15
4 5 20
5 5 25
6 5 30
0 głosów
5 odpowiedzi
so although using srand(time(0)) can be used to get truly random numbers, how truly random are they? For example, if one were to call this method at the same time (in this example, if one were to use this command at 51s) each time would the numbers generated be the same???
If so, are the numbers still truly random??
And if this theory is true, how can one generate truly random numbers that cannot repeat based on external variables (e.g., time)?
2 głosów
4 odpowiedzic#
0 głosów
1 OdpowiedźI have a project in school and i want to add some login functions. know im planning to make an external js and there i will get the input of the user.In the login button i will put there the username input but how do i cancel the funtion if the users input is null and where should i put these method
THANKS FOR THE FUTURE HELP :)
0 głosów
2 odpowiedziPopularne dzisiaj
Code
2 Votes
Solution
0 Votes
Calculator
0 Votes
How to make animation
0 Votes
Sololearn logo
0 Votes