Task 1-1
My name is Steffy Jose
Task 1-2(Data Types)
x = 100
x = Welcome
x = 3.14
x = 1bool(true)
x = NULL
Task 2-1(Sum of 2 numbers)
a = 10
b = 28
Sum = 38
Task 2-2(Swapping)
a = 10
b = 28
After Swapping
a = 28
b = 10
Task 3(var_dump)
x = 100 int(100)
x = Welcome string(7) "Welcome"
x = 3.14 float(3.140000000000000124344978758017532527446746826171875)
x = 1 bool(true)
x = NULL
Task 4-1(Constant)
Name is Steffy Jose
Task 4-2(Area and perimeter of circle)
Radius = 6
Area = 113.04
Perimeter = 37.68
Task 5-1(Area and perimeter of rectangle)
Width = 10
Height = 60
Area = 600
Task 5-2(10^2)
10^2 = 100
Task 5-3(Remainder)
Remainder = 1
Task 5-3(++,--)
x = 10
++x = 11
--x = 10
Task 6-1(Voting Eligibility Check)
Age = 19
Congratulations! You are eligible for voting.
Task 6-2(Odd or Even)
Number = 5
Odd Number
Task 7(Ternary Operator)
Largest is 22
Task 8-1(Switch - vowels)
Not a vowel
Task 8-2(Switch odd/even)
Odd Number
Task 9-1 (Odd numbers from 1 to 100)
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99
Task 9-2 (Printing 100-1)
100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
Task 9-3 (Multiplication Table)
1 * 8 = 8
2 * 8 = 16
3 * 8 = 24
4 * 8 = 32
5 * 8 = 40
6 * 8 = 48
7 * 8 = 56
8 * 8 = 64
9 * 8 = 72
10 * 8 = 80
Task 10 (Array of Birds)
Peacock
Pigeon
Crow
Parrot
Sparrow