Created
September 13, 2019 19:41
-
-
Save raushankrjha/70653d3261bf91e3cb371c53e3c62e32 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "dart:io"; | |
main() | |
{ | |
var num,factorial=1; | |
stdout.write("Enter a number"); | |
num=int.parse(stdin.readLineSync()); | |
for(int i=1;i<=num;i++) | |
{ | |
factorial=factorial*i; | |
} | |
print("Factorial of $num is $factorial"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment