5 Programming Exercises for Beginners Part 1 | C Programming Exercises for Beginners

preview_player
Показать описание
Here are 5 coding exercises for beginners with C!

Exercise 1 - Power of a number: 00:00
Write a program which calculates the expression n^n where n is an integer value filled by the user.

Exercise 2 - Sum of input: 5:03
Write a program which reads a sequence of integers from the user and stops when the sum of these values exceeds 100.

Exercise 3 - Sum and Product of input: 8:40
Write a program which reads a sequence of integers from the user and shows their sum and product when the user enters a negative value.

Exercise 4 - Divisors of a number: 12:06
Write a program which reads an integer from the user and displays its divisors.

Exercise 5 - Perfect number: 17:15
Write a program which reads an integer from the user and indicates if this integer is a perfect number or not.

The First video in the series Explains the basics of C. After you watch that video it's time to solve some exercises and learn to think like a programmer. Here is the first video in case you didn't watch it yet:
Рекомендации по теме