황일정 ¶
~cpp #include<iostream> using namespace std; int main() { cout<<"************************* 구 구 단 ****************************"<<endl; for(int i=1;i<10;i++) { for(int j=2;j<10;j++) cout<<j<<"X"<<i<<"="<<j*i<<"\t"; cout<<endl; } return 0; } //by 일정(주영,승균!아이스크림 기대하겠음^^)
유주영 ¶
~cpp #include <iostream> using namespace std; int main() { for(int i=1;i<10;i++) { for(int j=2;j<6;j++) cout << j << " * " << i << " = " << j*i << "\t"; cout << "\n"; } cout << "\n"; for(int k=1;k<10;k++) { for(int h=6;h<10;h++) cout << h << " * " << k << " = " << k*h << "\t"; cout << "\n"; } return 0; }
//승균아 당했다 -_-;;
오승균 ¶
~cpp #include <iostream.h> void main() { cout << "<대략 구구단>" << "\n\n"; for (int i = 1; i < 10; i++) { for (int j = 2; j < 6; j++) cout << j << " x " << i << " = " << j * i << "\t"; cout << "\n"; } cout << "\n"; for (int k = 1; k < 10; k++) { for (int l = 6; l < 10; l++) cout << l << " x " << k << " = " << l * k << "\t"; cout << "\n"; } } 음...역시나 텝이었군... 근데 주영이거랑 거의 똑같군 쿠쿠쿠~
권정욱 ¶
~cpp #include <iostream> using namespace std; int num1,num2; void multi(int n1, int n2); int main(){ for (int num2 = 1; num2<10; num2++){ num1 = 2; multi(num1,num2); cout << endl; } cout << endl; for (num2 = 1; num2<10;num2++){ num1 = 6; multi(num1, num2); cout << endl; } return 0; } void multi(int n1, int n2) { cout << n1 << " * " << n2 << " = " ; if (n1 * n2 <10) cout << " " << n1 * n2 << "\t"; else cout << n1 * n2 << "\t"; if (n1==5 || n1 == 9) return; else { multi(n1+1, n2); } }