微信掃一掃關注公眾號后聯(lián)系客服
微信掃碼免費搜題
首頁
題庫
網(wǎng)課
在線???/h3>
桌面端
登錄
搜標題
搜題干
搜選項
fortran考試填空題每日一練(2020.01.03)
填空題
下列程序的運行結果是()。 Program main implicit none integer ::a=1 integer ::b=2 call add ( a ) Call add ( b) Write(*,*) a , b Stop end Subroutine add (sum) Implicit none integer :: sum sum=sum+1 Return end
答案:
2,3
點擊查看答案
手機看題
填空題
下列程序的運行結果是()。 Program test Implicit none Complex a,b,c A=(1.0,2.0) b= (2.0,4.0) c=a+b Write(*,*) c Stop end
答案:
(3.000000,6.000000)
點擊查看答案
手機看題
填空題
下列程序的運行結果是()。 Program test Implicit none Integer::i Integer::a(5)=(/ (i, i=1,5) /) Integer::b(5)=0 Where (a<3) b=a End where Write(*,”(5(i3,1x))”) b end
答案:
12000
點擊查看答案
手機看題
填空題
下列程序的運行結果是()。 Program test Implicit none Integer::i Integer::a(5) Forall ( i=1:5 ) A(I)=5 End forall Write(*,*)a Stop end
答案:
55555
點擊查看答案
手機看題
填空題
Fortran語言中有:()五種基本數(shù)據(jù)類型。
答案:
整數(shù)型、邏輯型、字符型、實數(shù)型、復數(shù)型
點擊查看答案
手機看題