Title Comparing Adjacent Numbers in a Sequence of Numbers (Case 3)
Catalog Type SLCItem
Persistent ID https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=PYTHON&set=py_check_adjacent&ch=py_adjacent_greater
Platform Name PCEX
Features
Description Construct a program that checks whether a sequence of non-zero numbers, entered one at a time, contains adjacent numbers in ascending order. Numbers are said to be in ascending order when they are arranged from the smallest to the largest number. For example, 5, 9, 13, 17 and 21 are arranged in ascending order.\nNote that you need to think what value should the program use to indicate the end of the input.
Keywords while loop
Author Kamil Akhuseyinoglu
Institution University of Pittsburgh
Iframe URL https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=PYTHON&set=py_check_adjacent&ch=py_adjacent_greater
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Python
Natural Language en

Preview