• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu

F&A Diskussionen

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
java
0 Stimmen
5 Antworten
25th Sep 2016, 11:26 PM
Pharaoh David
Pharaoh David - avatar
I need to design a recursive function called replicate recur which will receive two arguments: times which is the number of times to repeat and data which is the number or string to be repeated. The function should return an array containing repetitions of the data argument. For instance, replicate_recur (3, 5) should return [5,5,5]. If the times argument is negative or zero, return an empty array. If the argument is invalid, raise ValueError.
pythonrecursionstrings
0 Stimmen
4 Antworten
5th Sep 2016, 9:26 PM
Dan-Awoh Emmanuel
Dan-Awoh Emmanuel - avatar
< Vorherige1...1011Weiter >
Heute heiß
Can I import any module in python in this app?
1 Votes
Loops and conditions
2 Votes
Algorithm to create maze-like grid
2 Votes
photo upload issue in html code
0 Votes
app for lessons
1 Votes
I can't figure out how to use the getElementById code in JavaScript Code Playground, I've tried multiple times and watched YT
0 Votes
Need a personal tutor
0 Votes
Community and feed option
0 Votes
How Much RAM is Required for Object Detection Project
0 Votes
Hey ! how to install modules on this app
0 Votes