int main() { int N, i, j; scanf("%d", &N); for(i=1; i<=N; i++){ for(j=1; j<=N; j++){ printf("*"); } printf("\n"); } }
int main() { int N, counter; scanf("%d", &N); counter=0; while(N){ if(N%10==7){ counter++; } N/=10; } printf("%d\n", counter); }
int main() { int N, i, result; N=-1; while(N<0){ scanf("%d", &N); } result=1; for(i=2; i<=N; i++){ result*=i; } printf("%d\n", result); }