Variants
Views
Actions

Cppreference:Archives

From cppreference.com
Revision as of 04:00, 16 January 2020 by 213.233.108.202 (Talk)

  1. include <iostream>

using namespace std; int main() { int i, fact=1, n; cout<<"n="; cin>>n; for(i=1;i<=n;i++){ fact=fact*i; } cout<<fact;