0% found this document useful (0 votes)
49 views2 pages

Practicum 5

The document outlines tasks for two C programming language practicums about logical operators, selection statements, and loops. For practicum 5, students are asked to write programs that change console color based on user input and raise a number to powers from 0 to 7. Practicum 10 tasks involve using loops to display numbers in ranges, even/odd numbers in ranges, multiples of 7 in ranges, and calculating sums of numbers in ranges or until the user enters 0.

Uploaded by

Samnang Deoun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views2 pages

Practicum 5

The document outlines tasks for two C programming language practicums about logical operators, selection statements, and loops. For practicum 5, students are asked to write programs that change console color based on user input and raise a number to powers from 0 to 7. Practicum 10 tasks involve using loops to display numbers in ranges, even/odd numbers in ranges, multiples of 7 in ranges, and calculating sums of numbers in ranges or until the user enters 0.

Uploaded by

Samnang Deoun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Practicum 5

Course «C Programming Language»

Meeting №9
Topic: Logical operators and selection statements

Tasks for practicum:

Task 1: Write a program that changes the color of the console application at the user's discretion.
The user can select the font color and background color.

Task 2: Write a program that raises the entered number to the power from zero to seven,
inclusively, at the user's discretion.

1
Practicum 5
Course «C Programming Language»

Meeting №10
Topic: Loops

Tasks for practicum:

Task №1. Display all the numbers from zero to the number entered by the user.

Task №2. The user enters two limits of the range, display all the numbers in that range. Provide
that the user can enter range limits in any order.

display all the even numbers from the range.

display all the odd numbers from the range.

display all the multiples of seven.

Task №3. The user enters two limits of the range. Calculate the sum of all the numbers in the
range.

Task №4. The user enters numbers from the keyboard. Calculate their sum and display as soon
as the user enters zero.

You might also like