摘要: 例题1 循环输入一周日最高气温,判断最高气温,并计算一周平均最高气温。求出这几天的哪一天的气温最高?2014年3月23日-29日南京日最高气温如下:16.0 17.0 17.0 18.0 16.0 22.0 24.0 (单位:℃) program main integer i,j,ri real t 阅读全文
posted @ 2020-04-21 22:17 李欣玲 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 程序源码: program main implicit none integer i,sum real t(7),tmax tmax=0.0;sum=0 do i=1,7 read*,t(i) if(t(i)>=tmax) then tmax=t(i) end if if(t(i)>20) then 阅读全文
posted @ 2020-04-21 14:30 李欣玲 阅读(159) 评论(0) 推荐(0) 编辑