#include <stdio.h>int main(){ int i,fac=1; int n=5; for(i=1;i<=n;i++){ fac=fac*i; } printf("%d",fac);}
Standard input is empty
120
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!