diff --git a/program.txt b/program.txt new file mode 100644 index 0000000..5fb65b9 --- /dev/null +++ b/program.txt @@ -0,0 +1,15 @@ +define factorial(int n){ +int fact = 1; +for(i = 1; i <= n; i++){ +fact = fact * i; +} +printf("%d",fact); +} + + +define EvenOdd(int num){ +if(num % 2 == 0) +printf("number is even"); +else +printf("number is odd"); +}