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
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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers