#45553: 使用while


tc11320811 (李宥澂)

學校 : 國立臺中第二高級中學
編號 : 304188
來源 : [125.224.192.162]
最後登入時間 :
2025-04-26 10:49:24
d073. 分組報告 -- 板橋高中教學題 | From: [49.215.51.85] | 發表日期 : 2025-03-15 20:43

 

    

  int a,n;

cin>>a;

while(a>0){

a-=3;

n++;

}cout<<n;

return 0; 

 

 
ZeroJudge Forum