C Exercises: Check a given array of integers and return true if there is a 3 with a 5 somewhere later in the given array
62. Check for 3 Followed by 5 Later
Write a C program to check a given array of integers and return true if there is a 3 with a 5 somewhere later in the given array.
C Code:
Sample Output:
0 1 0
Pictorial Presentation:
Flowchart:

For more Practice: Solve these Related Problems:
- Write a C program to check if an array contains a 2 followed by a 4 later in the sequence.
- Write a C program to verify if an array has a 5 that is preceded by a 3 anywhere earlier.
- Write a C program to determine if a 7 appears in an array before a 9 occurs.
- Write a C program to check if there is any instance where a 1 is followed by a 2 at a later index.
C Programming Code Editor:
Previous: Write a C program to check if an array of integers contains a 3 next to a 3 or a 5 next to a 5 or both.
Next: Write a C program to check a given array of integers and return true if there is a 3 with a 5 somewhere later in the given array.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.