The basics of programming in c++ for beginners

Tasks and solution. С

Data types, variables and constants
Ввод с клавиатуры и вывод данных на экран
Арифметические операции и комбинированные операторы 
Операторы выбора if и else в С
The switch statement in C ++
The for loop in C++
Циклы while, do while, nested loops
Arrays in C++
Two-dimensional arrays C ++
Functions in C++
Pointers C ++
A pointer to a pointer to C ++
Classes in C ++

Additional collection of problems with solutions

практика программирования, задачи с решением, задачи по программированию с++, задачи по программированию C++

This page contains all of the tasks on the topics lessons, posted on our website. К каждой задаче прилагается наш вариант решения. Постарайтесь всё же решать их самостоятельно и только потом сравнивать наш исходный код со своим. “Хочешь научиться программировать – программируй”!

Больше практических заданий с решениями найдёте here.

Рекомендуем посетить Сайт для юных программистов  – где вы найдете уроки по различным языкам программирования (в том числе для детей), 3D-моделированию, Linux и др.

Tasks and solution. С
4.6 (91.84%) 49 votes

33 thoughts on “Tasks and solution. С

  1. lovely Elephants

    prb4715 In one Indian village teacher asked the boy Manmohan count the number of elephants in the village. Manmohan counted all the elephants in the village, and he got a two-digit number n. But instead of, to report the answer to the teacher, Manmohan has decided to play a trick bit. For this Manmohan subtracted from the resulting sum the number of its digits, I divide the result by 9 (rejecting at the same fractional part of the result), that number increased to 1, then append to the end of the last digit obtained starting from the result subtracted chislani 10. Then, what happened in the end, he told the teacher.

    Despite all the cunning Manmohan, teacher could determine the number of resulting, how many elephants were in the village. Identify it and you.

    Input data

    Целое число, which received Manmohan.


    Print the number of elephants in the village.

  2. help me please “Classes begin in n hours m minutes,and ends at a clock k hvydyn.Skilky hours and minutes long zahyattya

    1. Move all in minutes, Vienna, and then find a result from Dillen – years, the balance – moments

Leave a Reply

Your email address will not be published. Required fields are marked *