lab4 Flashcards
(10 cards)
1
Q
write a fortran program to check for odd or even numbers
A

2
Q
what does mod(n,2) mean
A
remainder
(M-M/2*2)
3
Q
Greater
A
>= or .ge.
4
Q
stricktly greater
A
>: or .gt.
5
Q
less
A
<= or .le.
6
Q
stricktly less
A
<: or .lt.
7
Q
equal
A
== or .eq.
8
Q
how to turn integer into real
A
float or a.
9
Q
write a program that print out the sum of the digits of a number
A

10
Q
write a program that determines weather the number is a prime or not
A