moh4zaenal
Monday, 11 June 2012
program faktorial
#include <stdio.h>
void main()
{
int n,h;
printf("program faktorial\n\n");
printf("berapa n : ");
scanf("%i", &n);
h=1;
while(n>=1)
{
h=h*n;
n--;
}
printf("%i",h);
system("PAUSE");
}
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment