Computer Science, asked by Anonymous, 9 months ago

Hay Brainly ki Public !!

Write a program in c language of recursion that accept a number and give the Factorial of given number as output.

Don't Spam !! ​

Answers

Answered by nilesh102
6

Answer:-

=> Factorial of a Number Using Recursion

#include<stdio.h>

long int multiplyNumbers(int n);

int main() {

int n;

printf("Enter a positive integer: ");

scanf("%d",&n);

printf("Factorial of %d = %ld", n, multiplyNumbers(n));

return 0;

}

long int multiplyNumbers(int n) {

if (n>=1)

return n*multiplyNumbers(n-1);

else

return 1;

}

Output

Enter a positive integer: 6

Factorial of 6 = 720

i hope it helps you.....

Answered by Anonymous
3

Answer:

 &lt;html&gt; &lt;head&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt; &lt;style&gt; Body{ background-color: light blue; font-family: cursive; } .glow{ font-size: 80px; color: #fff; text-align: center; -webkit-animation: glow 1s ease-in-out infinite alternate; -moz-animation: glow 1s ease-in-out infinite alternate; animation: glow 1s ease-in-out infinite alternate; } @-webkit-keyframes glow{ from{ text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60073, 0 0 40px #e60073, 0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073; } } &lt;/style&gt; &lt;/head &gt; &lt;body&gt; &lt;h1 class="glow"&gt;❤️ishaan&lt;/h1&gt; &lt;/body&gt; &lt;/html&gt;

Similar questions