Title Printing A Sequence of Repeated Numbers (Case 2)
Catalog Type SLCItem
Persistent ID https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/nested_for_repeated_sequence__68bdb309f6cc3d7a9cc09863?index=1
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
Author Mohammad Hassany
Institution University of Pittsburgh
Iframe URL https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/nested_for_repeated_sequence__68bdb309f6cc3d7a9cc09863?index=1
Protocol SPLICE
Protocol URL
License MIT
Programming Language JAVA
Natural Language en

Preview

SPLICE Output