Junior 1

1. Write a program to print your name, date of birth and mobile number.

Name : Neo 
DOB : September 15, 2075 
Mobile : +38 (067) 777-77-77


2. Write a program to print a block N using hash (#).

##      #
# #     #
#  #    #
#   #   #
#    #  #
#     # #
#      ##


3. Write a program to compute the sum of the two given integer values. 

a = 4
b = 6
sum = 10


4. Write a C# Sharp program to print the result of dividing two numbers.

a = 7
b = 2
sum = 3,5


5. Write a program to compute the perimeter and area of a rectangle with a height of 8 cm and width of 5 cm.

Perimeter of the rectangle = 26 cm
Area of the rectangle = 35 square cm


6. Write a program to compute the perimeter and area of a circle with a radius of 5 cm.

Perimeter of the Circle = 31,4 cm
Area of the Circle = 78,5 square cm


7. Write a program to convert years into days.
Note: Ignore leap year. 

Number of years : 3
Days: 1095


8. Write a program to print on screen the output of adding, subtracting, multiplying and dividing of two numbers which will be entered by the user.

Input the first number: 5
Input the second number: 2
5 + 2 = 7
5 - 2 = 3
5 x 2 = 10
5 / 2 = 2,5


9. Write a program to solve quadratic equations ax2 - bx + c = 0 (x2 - 6x - 1 = 0)

x1 = 6,16
x2 = 0,16


10. Write a program to swap two numbers.

First Number: 5
Second Number: 6
After Swapping:
First Number: 6
Second Number: 5


11. Write a C# program that takes a number as input and then displays a rectangle of 5 columns wide and 5 rows tall using that digit.

Enter a number: 4
44444
4   4
4   4
4   4
44444


12. Write a program to find the largest of three numbers.

a = 10
b = 20
c = 15
The 2-nd Number is the greatest among three


13. Write a  program to check the nearest value of 30 of two given integers and return 0 if two numbers are same.

Input first integer: 27
Input second integer: 35
27