Guest User

цикл

a guest
Sep 2nd, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.10 KB | None | 0 0
  1. int fact(int n)
  2. {
  3.     int prod = 1;
  4.     while (n > 1)
  5.         {
  6.         prod *= n;
  7.         n--;
  8.         }
  9.     return prod;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment