Problems
Create a six-character array and initialize it to {'J', 'U', 'N', 'G', 'O', 'L'} . Write a program that inputs a character and prints its position in the array.
The first position is 0, and if a character that is not in the array is entered, write a program that prints the message "none" and exits.
Example #1
L
5
Example #2
B
none
Source
자기주도C언어프로그래밍