C++

명품 C++ 실습문제 2장 2번

Hs’s Coding vlog 2023. 1. 2. 17:08
#include <iostream>

using namespace std;



int main(){

       int i,j;

    int result;

    for(i=1;i<=9;i++){

        for (j = 1; j <= 9; j++) {

result= j* i  ;

cout << j << "x" << i << "=" << result<< " ";

if (j == 9) {

cout << endl;

}

}

    }



}