Electronics and Communication Engineering - Microprocessors - Discussion

Discussion Forum : Microprocessors - Section 7 (Q.No. 21)
21.
If N = 196, the result of the following program will be

INTEGER N, DIGIT 1, DIGIT 2, DIGIT 3,
SUM
READ*, N
DIGIT 1 = N - (N / 10)* 10 N = N / 10
DIGIT 2 = N - (N / 10)* 10 N = N / 10
DIGIT 3 = N - (N / 10)* 10
SUM = DIGIT 1 + DIGIT 2 + DIGIT 3
196
16
16.0
196.0
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
1 comments Page 1 of 1.

Sandu said:   9 years ago
I don't know how it works. Please explain.

Post your comments here:

Your comments will be displayed after verification.