More actions
imported>miura0806 No edit summary |
imported>miura0806 No edit summary |
||
| Line 1: | Line 1: | ||
= 진행사항 = | |||
* 참여자 | |||
{| class="wikitable" | |||
|- | |||
| 튜터 | |||
| [[최다인]] | |||
| 참석 | |||
|- | |||
| 튜티 | |||
| [[유재범]] | |||
| 참석 | |||
|- | |||
| | |||
| [[오영은]] | |||
| 참석 | |||
|- | |||
| | |||
| [[장우진]] | |||
| 참석 | |||
|- | |||
| | |||
| [[문태현]] | |||
| 참석 | |||
|} | |||
* 저번 시간 과제에 대한 설명 | |||
** 왜 void형을 쓰는가 | |||
** 변수의 자료형에 따른 출력값 | |||
** ...기타 등등 | |||
* 구구단, 별찍기 실습 | |||
* Visual Studio 디버깅 방법 | |||
* 다음 수업 : 미정 | |||
== 구구단 코드 == | |||
=== 최다인 === | |||
#include <stdio.h> | #include <stdio.h> | ||
#include <Windows.h> | #include <Windows.h> | ||
| Line 37: | Line 70: | ||
printf("%d X %d = %d\n", num, i, num*i); | printf("%d X %d = %d\n", num, i, num*i); | ||
} | } | ||
=== 유재범 === | |||
=== 오영은 === | |||
=== 장우진 === | |||
=== 문태현 === | |||
== 별찍기 코드 == | |||
=== 유재범 === | |||
=== 오영은 === | |||
=== 장우진 === | |||
=== 문태현 === | |||
== 후기 == | |||
----- | |||
[[:새싹교실/2014/속도위반 속도위반]] | |||
Revision as of 12:08, 11 April 2014
진행사항
- 참여자
| 튜터 | 최다인 | 참석 |
| 튜티 | 유재범 | 참석 |
| 오영은 | 참석 | |
| 장우진 | 참석 | |
| 문태현 | 참석 |
- 저번 시간 과제에 대한 설명
- 왜 void형을 쓰는가
- 변수의 자료형에 따른 출력값
- ...기타 등등
- 구구단, 별찍기 실습
- Visual Studio 디버깅 방법
- 다음 수업 : 미정
구구단 코드
최다인
#include <stdio.h>
#include <Windows.h>
#pragma warning(disable:4996)
void printgoogoo(int);
int main(){
int num;
while(1){
system("cls");
printf("출력할 구구단을 입력해주세요 (0은 전체 출력) : ");
scanf("%d",&num);
if((num > 9 || num < 2) && num != 0){
printf("구구단의 값은 2 ~ 9 사이입니다.\n");
system("pause");
continue;
}
printgoogoo(num);
system("pause");
}
return 0;
}
void printgoogoo(int num){
int i;
if(num == 0){
for(i = 2; i < 10; i++)
printgoogoo(i);
return;
}
printf("\n구구단 %d단\n" , num);
for(i = 1; i < 10; i++)
printf("%d X %d = %d\n", num, i, num*i);
}