Difference between r1.4 and the current
@@ -44,9 +44,9 @@
static int sum;
static int i;
if (i == 101) return sum;
if (i == 101) return printf("%d\n", sum);;
sum += i;sum2();
}
@@ -78,7 +78,7 @@
sum2();
@@ -97,6 +97,7 @@
}
*/
}}}
}}}
@@ -109,22 +110,26 @@
#include <stdlib.h>
#include <time.h>
printf("%d X %d = %d \n", n, i, n*i);
}
}
#include <time.h>
void gugu(int n){
void gugu(){
int i; int n;
scanf_s("%d", &n);
for (i = 1; i < 10; i++){printf("%d X %d = %d \n", n, i, n*i);
}
gugu2();
}void gugu2(int n){
void gugu2(){
int i; for (i = 1; i <= n; i++){
printf("%d X %d = %d \n", n, i, n*i);
int m;
srand((int)time(NULL));
m = rand() % 9 + 1;
for (i = 1; i <= m; i++){
printf("%d X %d = %d \n", m, i, m*i);
}
@@ -159,29 +164,14 @@
int main() {
gugu(n);
gugu();
finish();
return 0;
ㅇㅇ
1번
/* #include <stdio.h> void finish(){ int i; printf("==::::::...:=+=::..:.::::=:+#:::::::\n::::::::@@@# = ::: = +# = +: : . : = #..@.::::\n::::::: == ..::... %@@% .. %@@.::::\n.... . + .:. %@ = @%@ = ...." "\n:..... : +. : ..* = . = @@@% ..:%%%% ..." "\n:: : ...@ + .:: . + %#%@:%%@%% %= .:%@@...:" "\n..:: @#:::. + @@%+*+@@@@@@@@@ = @@@% .." "\n= .. += :@@ + %@@@@@%#@@@@@@@@" "\n+ +: += = . : .%@@@@@ + . = *@@@@@%" "\n= . = ++*: = @@@@@% *+@@#@@" "\n:..:::: + **# = ....*@@@@@ = .... + *%%#@ +" "\n++++ = += #%* *= == == %*@@@ %= == = ++ = :*#@@@ +" "\n++++++%@ + %: == == : **@#@*: += = ++++ = @%#%+" "\n++++++#*#@#**+# + %@++@%#***#####%@##%\n"); printf("우리반 \n 홍성현 이한용 유동제\n"); for (i = 0; i < 40; i++) printf("#"); printf("\n"); } int sum(){ int s = 0; int i; for (i = 1; i < 101; i++){ s += i; } return s; } int sum2(){ static int sum; static int i; i++; if (i == 101) return printf("%d\n", sum);; sum += i; sum2(); } int sum3(int n){ static int sum; static int i; if (i == 0){ scanf_s("%d", &n); } i++; if (i == n+1) return sum; sum += i; sum3(n); } int main() { int n; printf("%d\n", sum()); sum2(); printf("%d\n", sum3(1)); finish(); getchar(); return 0; } */
2번
/* #include <stdio.h> #include <stdlib.h> #include <time.h> void gugu(){ int i; int n; scanf_s("%d", &n); for (i = 1; i < 10; i++){ printf("%d X %d = %d \n", n, i, n*i); } gugu2(); } void gugu2(){ int i; int m; srand((int)time(NULL)); m = rand() % 9 + 1; for (i = 1; i <= m; i++){ printf("%d X %d = %d \n", m, i, m*i); } } #include "gugu.h" void finish(){ int i; printf("==::::::...:=+=::..:.::::=:+#:::::::\n::::::::@@@# = ::: = +# = +: : . : = #..@.::::\n::::::: == ..::... %@@% .. %@@.::::\n.... . + .:. %@ = @%@ = ...." "\n:..... : +. : ..* = . = @@@% ..:%%%% ..." "\n:: : ...@ + .:: . + %#%@:%%@%% %= .:%@@...:" "\n..:: @#:::. + @@%+*+@@@@@@@@@ = @@@% .." "\n= .. += :@@ + %@@@@@%#@@@@@@@@" "\n+ +: += = . : .%@@@@@ + . = *@@@@@%" "\n= . = ++*: = @@@@@% *+@@#@@" "\n:..:::: + **# = ....*@@@@@ = .... + *%%#@ +" "\n++++ = += #%* *= == == %*@@@ %= == = ++ = :*#@@@ +" "\n++++++%@ + %: == == : **@#@*: += = ++++ = @%#%+" "\n++++++#*#@#**+# + %@++@%#***#####%@##%\n"); printf("우리반 \n 홍성현 이한용 유동제\n"); for (i = 0; i < 40; i++) printf("#"); printf("\n"); } int main() { gugu(); finish(); return 0; } */