Re: [問題] fortran題目
1. 請使用 Fortran 連線轉信版 (tw.bbs.comp.lang.fortran)
2. 請把錯誤訊息貼出來。
3. 邏輯運算是用小數點,不適用逗號,例如: .LE. ,不是 ,LE,
==> 本文由 ">__⊙)-q▄︻═╤═─ <BirthStone.bbs@ptt.cc (>"
> 於 news:4aNKWS%247vc%40ptt.cc 發表
> write(*,*)'輸入你的收入='
> read(*,*)x
> if(N,LE,370000)then
> write(*,*)'所得稅',x*6%
> else
> if(N,LE,490000)then
> write(*,*)'所得稅',x*13%-25900
> else
> if(N,LE,1980000)then
> write(*,*)'所得稅',x*21%-105000
> else
> if(N,LE,3720000)then
> write(*,*)'所得稅',x*30%-283300
> else
> if(N,LT,999999999999999999999)then
> write(*,*)'所得稅',x*40%-655300
> else
> end if
> end if
> end if
> end if
> end if
> stop
> end
> 這是算所得稅的題目
> 有一個錯誤請問是在哪@@?
> 還有無限大那邊用999999999999999這樣好嗎?
> 還是可以有別的表示法?
>
--
風禹科技驗證有限公司 ASP.NET Web News Reader 0.2.7 UTF-8 Beta
網站地圖 http://tlcheng.twbbs.org/wwwmap.htm
流域防洪/區域水資源/徐昇網/玫瑰圖/語音通訊 文章與程式
Basic/Fortran/Windows API/.Net/輔助說明檔 原始碼、文章與討論
微軟程式設計、系統管理使用新技術論壇討論區,網友回覆後即時簡訊、電子郵件通知:
MSDN: http://forums.microsoft.com/msdn-cht/default.aspx?siteid=14
TechNet: http://forums.microsoft.com/technet-cht/default.aspx?siteid=23
--
ASPNET News Reader http://tlcheng.twbbs.org/News/Reader.aspx
RSS 2.0 http://tlcheng.twbbs.org/News/rss2.aspx?Action=List&Newsgroup=tw.bbs.comp.language
討論串 (同標題文章)