Penka Kamenova

My first steps in programming

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.

27/11/2012
by Penka Kamenova
0 comments

Exchange Bit Extended ([C#] Оperators and Expresions, task 14)

Write a program that exchanges bits {p, p+1, …, p+k-1) with bits {q, q+1, …, q+k-1} of given 32-bit unsigned integer.

27/11/2012
by Penka Kamenova
0 comments

Point Circle Rectangle ([C#] Оperators and Expresions, task 9)

Write an expression that checks for given point (x, y) if it is within the circle K( (1,1), 3) and out of the rectangle R(top=1, left=-1, width=6, height=2).

27/11/2012
by Penka Kamenova
0 comments

Fibonacci ([C#] Console Input Output, task 9)

Write a program to print the first 100 members of the sequence of Fibonacci: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, …

27/11/2012
by Penka Kamenova
0 comments

Triangle ([C#] Primitive Data Types, task 9)

Write a program that prints an isosceles triangle of 9 copyright symbols ©. Use Windows Character Map to find the Unicode code of the © symbol. Note: the © symbol may be displayed incorrectly.