看板 NTUBIME-100 關於我們 聯絡資訊
※ 引述《angelwing12 (是正妹品翔)》之銘言: #include <cstdlib> #include <iostream> using namespace std; int main() { int degree2=0,degree=0; cout<<"華式 攝氏"<<endl; for(degree=0;degree<=245;degree+=5) { degree2= (degree-32)*5/9; cout<<degree<<" "<<degree2<<endl; } system("PAUSE"); return 0; } 小趴要我po的= =" 我也有一種: #include "stdafx.h" #include "iostream" using namespace std; int main() { int c=0,f=0; do { c=(5.0/9.0)*(f-32); cout<<c<<"\n"; f+=5; }while(f<=245); system("pause"); return 0; } -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.183.67
dumbolover:品翔很乖 10/24 17:29
-- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.192.114.2
happierway:好像錯了...他要的是對照表喔!!! 10/24 23:50
angelwing12:不是列出來就好了嗎? (大驚!!!) 10/25 00:03
happierway:你的有列但是夢麟的沒有...他只有cout一個變數而已 10/25 01:11
happierway:現在在上計程... 10/25 16:09