Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'dart:io';
- void main()
- {
- int n;
- int fat = 1;
- print("Digite o valor de N: ");
- n = int.parse(stdin.readLineSync());
- for(int i = n; i > 1; i--)
- {
- fat = fat * i;
- }
- print(fat);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement