Title Printing A Sequence of Repeated Numbers
Catalog Type SLCItem
Persistent ID https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=PYTHON&set=py_repeated_sequence&ch=py_repeated_sequence2
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.
Keywords for loop, nested loops
Author Kamil Akhuseyinoglu
Institution University of Pittsburgh
Iframe URL https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=PYTHON&set=py_repeated_sequence&ch=py_repeated_sequence2
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Python
Natural Language en

Preview