lab4 Flashcards

(10 cards)

1
Q

write a fortran program to check for odd or even numbers

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what does mod(n,2) mean

A

remainder

(M-M/2*2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Greater

A

>= or .ge.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

stricktly greater

A

>: or .gt.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

less

A

<= or .le.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

stricktly less

A

<: or .lt.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

equal

A

== or .eq.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

how to turn integer into real

A

float or a.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

write a program that print out the sum of the digits of a number

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly