Computer Science, asked by tejagm9518, 15 days ago

1.Write a c program to find factorial of a given number using pointers​

Answers

Answered by Anonymous
5

Answer:

Program 2: Factorial program in c using pointers

#include<stdio.h>

void findFactorial(int,int *);

int main(){

int i,factorial,num;

printf("Enter a number: ");

scanf("%d",&num);

findFactorial(num,&factorial);

printf("Factorial of %d is: %d",num,*factorial);

Answered by abhisheksi192
2

Explanation:

Program 2: Factorial program in c using pointers

#include<stdio.h>

void findFactorial(int,int *);

int main(){

int i,factorial,num;

printf("Enter a number: ");

scanf("%d",&num);

findFactorial(num,&factorial);

printf("Factorial of %d is: %d",num,*factorial);

More items...

Similar questions