#78: .


s069 (郭又瑄)

學校 : 不指定學校
編號 : 79
來源 : [1.172.242.121]
最後登入時間 :
2024-09-19 19:35:54
t021. 301 函式與陣列 (小星星) | From: [1.172.215.102] | 發表日期 : 2024-03-03 09:24

#include <bits/stdc++.h>
using namespace std;
int q[2];
int compute(int q[2]){
    for(int i=1;i<=q[1];i++){
        for(int j=1;j<=q[0];j++){
            cout<<"*";
        }
        cout<<endl;
    }
return q[0]*q[1];
}
int main()
{
    cin>>q[0]>>q[1];
    cout<<compute(q);
    return 0;
}
 
ZeroJudge Forum