Question: Write a program that read a sequence of integer inputs and print (20 Points) a) The smallest and largest of the inputs. b) The
Write a program that read a sequence of integer inputs and print (20 Points) a) The smallest and largest of the inputs. b) The number of even and odd inputs. c) Cumulative totals. For example, if the input is 1729, the program should print 1810 19. d) All adjacent duplicates. For example, if the input is 1334556662, the program should print 356.
Step by Step Solution
3.54 Rating (158 Votes )
There are 3 Steps involved in it
Editable code aFor finding largest and smallest inputs Code nums while ... View full answer
Get step-by-step solutions from verified subject matter experts
