Final Problem 1.1
You cannot submit for this problem because the homework's deadline is due.
Description
Write a program that takes a series of numbers from the command-line argument
and print 1 if the values they provide are strictly ascending or descending, and print 0 if otherwise.
Format
Name your file as ex1_1.cpp
Input
Get a series of numbers from command-line argument input.
Output
Print 1 or 0.
Sample 1
Input
ex1_1 1 2 3 4
Output
1
Sample 2
Input
ex1_1 2 1 3 4
Output
0
Sample 3
Input
ex1_1 0 0 1
Output
0
Final Exam for VG101_BackUpTeset
- Status
- Finished
- Problems
- 5
- Open Since
- 2020-08-07 00:00
- DDL
- 2020-08-15 23:59
- Extension
- 24.0 hour(s)