write a c++ program using array
Input Format:
The first input contains an integer 'n' which denotes the number of candidates who have passed the exam
The remaining input denotes register number of 'n' candidates separated by spaces
The last input contains an integer which denotes the register number of Meera
Output Format:
If the register number is found, print "She passed her exam".Otherwise, print "She failed".
Sample Input:
5
34 46 52 32 265
32
Sample Output:
She passed her exam
Answers
Answered by
1
Answer:
If you need to input a string with whitespace characters (or strings with blank spaces as you call it) until a newline character is encountered, set the delimiter to '\n' character by using: scanf(" %[^\n]s",str);
Similar questions