Commit b70363f9 by glkink

Add new file

parent a28598da
Showing with 15 additions and 0 deletions
#include <stdio.h>
int main()
{
int a, b, f = 1;
printf("Sisesta täisarv millest tahad faktoriaali võtta: ");
scanf("%d", &b);
for (a = 1; a <= b; a++)
f = f * a;
printf("Selle täisarvu faktoriaal on %d\n", f);
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment