SHARE
TWEET

Untitled

a guest Sep 16th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(){
  5.     int x;
  6.     scanf("%d",&x);
  7.     while (x<2||x>100)
  8.         scanf("%d",&x);
  9.     int fact=1;
  10.     while (x>0){
  11.         fact*=x;
  12.         x--;
  13.     }
  14.     printf("%d\n",fact );
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top