#16481: 用while來做


loofah1212 (欲辯已忘言)

學校 : 臺北市立和平高級中學
編號 : 81650
來源 : [61.228.221.172]
最後登入時間 :
2020-01-01 22:42:46
d063. 0 與 1 -- 板橋高中教學題 | From: [61.228.214.174] | 發表日期 : 2019-01-04 19:10

#include <iostream>


using namespace std;
int main() {

int input;
while(cin>>input)
{
cout <<-input+1<< endl;
}// end while

return 0;
}

 
ZeroJudge Forum