From 564578c16f325d9f7b11d65f7c01714efc980798 Mon Sep 17 00:00:00 2001 From: Ambika M Date: Fri, 5 May 2023 17:08:52 +0530 Subject: [PATCH 1/2] commit by AMBIKA M(21BCAF11) --- demo.java | 11 ++++++++++- hello.java | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/demo.java b/demo.java index 6cb5a0a..893130d 100644 --- a/demo.java +++ b/demo.java @@ -1 +1,10 @@ -demo2 file \ No newline at end of file +class FactorialExample{ + public static void main(String args[]){ + int i,fact=1; + int number=5;//It is the number to calculate factorial + for(i=1;i<=number;i++){ + fact=fact*i; + } + System.out.println("Factorial of "+number+" is: "+fact); + } +} \ No newline at end of file diff --git a/hello.java b/hello.java index d597b00..a7ead57 100644 --- a/hello.java +++ b/hello.java @@ -1,7 +1,7 @@ public class hello { public static void main(String[] args) { - int a=99999900; + int a=199999900; System.out.println("This was a file for test repo"); //This line was added by ambika! } From e833b7b92799e4b7acb4eab1fdf42f857162f34c Mon Sep 17 00:00:00 2001 From: Ambika M Date: Sat, 6 May 2023 03:09:35 +0530 Subject: [PATCH 2/2] documentation demo by ambika --- sample/hello world.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 sample/hello world.txt diff --git a/sample/hello world.txt b/sample/hello world.txt new file mode 100644 index 0000000..95d09f2 --- /dev/null +++ b/sample/hello world.txt @@ -0,0 +1 @@ +hello world \ No newline at end of file