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! } 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