C++

Exercises in C ++ Language3 min read

Write a program that asks the user to enter 10 integers stored in an array. The program must display the number of integers greater than or equal to 10.

The purpose of this exercise is to check the following technical points:

Simple use of arrays.
A simple algorithm on an array: Finding the number of elements checking a property.




Here is the source file:

Write a program that asks the user to enter 10 integers stored in a table as well as an integer V. The program must find if V is in the array and show “V is in the array” or “V is not not found in the array “.

The purpose of this exercise is to check the following technical points:
Simple use of arrays.
A simple algorithm on an array: Search for an element in an array.

Here is the source file:

 

Write a program that asks the user to enter 10 integers stored in an array. The program must then display the index of the largest element.

The purpose of this exercise is to check the following technical points:

Simple use of arrays.
A simple algorithm on an array: search for the index of the largest element.

Here is the source file:

 

Write a program that asks the user to enter 10 integers stored in an array and an integer V. The program must find if V is in the array and must delete the first occurrence of V by shifting one box to the left the following items and adding a 0 at the end of the array . The program must then display the final array .

The purpose of this exercise is to check the following technical points:

Simple use of arrays.
A simple algorithm on an array: deletion of an element with offset of the following.

Here is the source file:

 

Leave a Comment