Computer Science, asked by adhiadharsh33, 9 months ago

Create an array of size 10 automatically fill the array with the factorial of number between 1 to 10 and then display the contenr of array​

Answers

Answered by rupshanandy2
4

Answer:

#include<iostream>

using namespace std;

int main()

{

     int arr[10],i,s=1;

     for(i=0;i<10;i++)

     {

           s=s*(i+1);

           arr[i]=s;

     }

      for(i=0;i<10;i++)

     {

           cout<<arr[i]<<",";

     }

}

Explanation:

C++ solution

Answered by rruthvik07
2

Answer:

bro its there only means

Explanation:

yes thats the explanation

Similar questions