{
to the end }
{
instruction1();
instruction2();
instruction3();
}
Implement a program that asks the user for a 2-digit natural number and shows the user the addition of both digits.
if (condition)
instructiontrue();
else
instructionfalse();
if (condition) {
instructiontrue_01();
instructiontrue_02();
} else {
instructionfalse_01();
instructionfalse_02();
}
Implement a program that asks the user for three real numbers and outputs the maximum of the three.
while (condition)
instruction();
instruction_next();
while (condition) {
instruction_01();
instruction_02();
}
instruction_next();
Implement a program that calculates the factorial of a natural number.
for
loops
|
|
|
|
Implement a program that calculates the factorial of a natural number,
using for
loops