1 / 4
Oct 2021

#include
using namespace std;

void fact(int n){
fact(n);
}

int main() {
// your code goes here
ios_base::sync_with_stdio(false);
cin.tie(0);
int t;cin>>t;
while(t–){
int n;cin>>n;
fact(n);
}
return 0;
}

  • created

    Oct '21
  • last reply

    Oct '21
  • 3

    replies

  • 600

    views

  • 2

    users

The code seems fine to me, but then I see you have now got accepted. Did you find the problem with it?

Ah ok. You might want to edit the post to remove the code, as there are some who will simply copy and submit it.