Question: Write a C program that reads a series of numbers between 0 and 2 0 0 inclusive. Your program displays distinct numbers. Hint: Put numbers

Write a C program that reads a series of numbers between 0 and 200 inclusive. Your
program displays distinct numbers.
Hint: Put numbers into a 1-D array.
Example Interaction (user input is underlined; your program must follow this format
precisely):
$ gcc -Wall a3_unique.c
$ ./a.out
Enter the number of input integers (0 to stop): -1
Invalid number
Enter the number of input integers (0 to stop): 0
$
$ ./a.out
Enter the number of input integers (0 to stop): 7
Enter numbers (0200): 578014839170
20113647
201: invalid and ignored
Unique numbers: 57,80,148,39,170,136,47
Enter the number of input integers (0 to stop): 0
$
$ ./a.out
Enter the number of input integers (0 to stop): 5
Enter numbers (0200): 86
9886100-135002730
-13: invalid and ignored
500: invalid and ignored
Unique numbers: 86,98,100,27
Enter the number of input integers (0 to stop): 0
$
$ ./a.out
Enter the number of input integers (0 to stop): 5
Enter numbers (0200): 86
9886100-13
-13: invalid and ignored
9877
Unique numbers: 86,98,100
Enter the number of input integers (0 to stop): 3
Enter numbers (0-200): 100
220
220: invalid and ignored
150
40
Unique numbers: 100,150,40
Enter the number of input integers (0 to stop): 0
$

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!