Penka Kamenova

My first steps in programming

08/12/2012
by Penka Kamenova
0 comments

The greatest common divisor (GCD) ([C#] – Loops, task 8)

Write a program that calculates the greatest common divisor (GCD) of given two numbers. Use the Euclidean algorithm (find it in Internet).

07/12/2012
by Penka Kamenova
0 comments

Factorial ([C#] Loops – task 6)

Write a program that, for a given two integer numbers N and X, calculates the sum S = 1 + 1!/X + 2!/X2 + … + N!/XN

28/11/2012
by Penka Kamenova
0 comments

Sort Values ([C#] Conditional Statements, task 4)

Sort 3 real values in descending order using nested if statements.

28/11/2012
by Penka Kamenova
0 comments

Product Of Three Numbers ([C#] Conditional Statements, task 2)

Write a program that shows the sign (+ or -) of the product of three real numbers without calculating it. Use a sequence of if statements.