Title Printing A Sequence of Repeated Numbers (Case 2)
Catalog Type SLCItem
Persistent ID https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=JAVA&set=nested_for.repeated_sequence&ch=JRepeatedSequence2
Platform Name PCEX
Features
Description Construct a program that receives an integer N from the user and prints a sequence of space-separated numbers from 1 to N such that the N-th number in the sequence is repeated N times. For example, if N is 6, the program will print the following sequence:\n1 22 333 4444 55555 666666
Keywords for loop, nested loops
Author Roya Hosseini
Institution University of Pittsburgh
Iframe URL https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=JAVA&set=nested_for.repeated_sequence&ch=JRepeatedSequence2
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Java
Natural Language en

Preview