Programming-Cpp

Tasks studies - laboratory


Project maintained by dawidolko Hosted on GitHub Pages — Theme by dawidolko

Exam 1

Task 1.

Write a program that calculates the area of ​​a regular quadrilateral with a user-specified side length x.

Task 2.

Write a program that calculates the greater of the integers provided by the user.

Task 3.

Write a program that, after entering the number n>=1, prints the sum of even numbers less than n.

Task 4.

Write a program that reads into an array (we assume that the number of elements entered by the user will always be less than 100) integers entered by the user (until the user enters zero) and determines the average of the array elements.

Task 5.

Write a diagram of the algorithm written in the program saved in the file program5.cpp. The diagram can be made on a piece of paper, and then a scan or a photo in a quality that allows the content to be read.