diff --git a/Task1/img/titan2.jpeg b/Task1/img/titan2.jpeg new file mode 100644 index 00000000..7ae8b6fa Binary files /dev/null and b/Task1/img/titan2.jpeg differ diff --git a/Task1/index.html b/Task1/index.html index 02288f78..b5277344 100644 --- a/Task1/index.html +++ b/Task1/index.html @@ -74,6 +74,16 @@
(Collaborator)
+
+ +
+
Enter Your Name
+
+ + +
+
+
diff --git a/Task3/javascript/factorial.js b/Task3/javascript/factorial.js new file mode 100644 index 00000000..9665d718 --- /dev/null +++ b/Task3/javascript/factorial.js @@ -0,0 +1,15 @@ +//to find factoial of a number 10 +function factorial(n){ + let answer = 1; + if (n == 0 || n == 1){ + return answer; + }else{ + for(var i = n; i >= 1; i--){ + answer = answer * i; + } + return answer; + } +} +let n = 10; +answer = factorial(n) +console.log("The factorial of " + n + " is " + answer);