Computer Science, asked by dhanushaj9713, 4 days ago

write a program in c++ to find fractional of a number

Answers

Answered by CyberBorealis
0

#include<iostream>

using namespace std;

int main() {

int num,factorial=1;

cout<<" Enter Number To Find Its Factorial: ";

cin>>num;

for (int a=1;a<=num;a++) {

factorial=factorial*a;

}

cout<<"Factorial of Given Number is ="<<factorial<<endl;

return 0;

}

Answered by nandinip82
0

Answer:

C++ Program

#include<iostream>

using namespace std;

int main() {

int num,factorial=1;

cout<<" Enter Number To Find Its Factorial: ";

cin>>num;

for (int a=1;a<=num;a++) {

factorial=factorial*a;

Similar questions