please read question carefully!! use fortran 95 geanny app ENGR2216 ortran Progr
ID: 3857457 • Letter: P
Question
please read question carefully!!
use fortran 95
geanny app
Explanation / Answer
program check
integer::n
Print *, "Enter a intger number n"
read *, n
if(n>0)then
if(mod(n,2)==0)then
Print *, "Positive and even"
else
Print *, "Positive and odd"
end if
else if(n<0)then
if(mod(n,2)==0)then
Print *, "Negative and Even"
else
Print *, "Negative and Odd"
end if
else
Print *, "Zero"
end if
end program check
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.