Title Printing A Sequence of Repeated Numbers (Case 1)
Catalog Type SLCItem
Persistent ID https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/nested_for_repeated_sequence__68bdb309f6cc3d7a9cc09863?index=0
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 each number in the sequence is repeated 5 times. For example, if N is 6, the program will print the following sequence:\n11111 22222 33333 44444 55555 66666
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=0
Protocol SPLICE
Protocol URL
License MIT
Programming Language JAVA
Natural Language en

Preview

SPLICE Output