Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int n,total,i=0,ln,k;
- char s[25];
- scanf("%d %s",&n,s);
- ln=strlen(s);
- total=n;
- while(1){
- i++;
- k=ln*i;
- if((n-k)<=0)
- break;
- total=total*(n-k);
- }
- printf("%d\n",total);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement