Numbers From 1 To 100 - Problem Description
Numbers From 1 To 100 - Problem Description
Problems for lab exercise for the course "Programming Basics" course @ SoftUni Global
Submit your solutions to the SoftUni Judge system: https://judge.softuni.org/Contests/4583
© SoftUni – https://softuni.org. Copyrighted document. Unauthorized copy, reproduction or use is not permitted.
3. Even Powers of 2
Write a program that receives a number n and prints the even powers of 2 ≤ 2n: 20, 22, 24, 26, …, 2n.
4. Numbers N…1
Write a program that reads a positive integer n entered by the user and prints the numbers from n to 1 in reverse
order. The entered number n will always be greater than 1.
5. Character Sequence
Write a program that receives text (string) and prints each character of the string on a separate line.
© SoftUni – https://softuni.org. Copyrighted document. Unauthorized copy, reproduction or use is not permitted.
6. Vowels Sum
Write a program that reads text (string) entered by the user and calculates and prints the sum of the vowel values
according to the table below:
Letter a e i o u
Value 1 2 3 4 5
7. Sum Numbers
Write a program that reads n number of integers entered by the user and sums them.
From the first line of the input, the count of numbers n is entered.
From the next n lines, one integer is entered at a time.
The program has to read the numbers, sum them and print their sum.
© SoftUni – https://softuni.org. Copyrighted document. Unauthorized copy, reproduction or use is not permitted.
8. Number sequence
Write a program that reads n number of integers. Print the largest and the smallest number among the entered
ones.
© SoftUni – https://softuni.org. Copyrighted document. Unauthorized copy, reproduction or use is not permitted.
© SoftUni – https://softuni.org. Copyrighted document. Unauthorized copy, reproduction or use is not permitted.