हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा ११

Circulate the contents: Write the specification and construct an algorithm to circulate the contents of the variables A, B, and C as shown below: The arrows indicate that B gets the value - Computer Science

Advertisements
Advertisements

प्रश्न

Circulate the contents: Write the specification and construct an algorithm to circulate the contents of the variables A, B, and C as shown below: The arrows indicate that B gets the value of A, C gets the value of B and A gets the value of C.

टिप्पणी लिखिए

उत्तर

Specification :
Circulated,B,C)
– – inputs: A,B,C all are real numbers
– – outputs: A,B,C, all are real numbers
T: = C
C: = B
B: = A
A: = T

Algorithm :
i) circulated,B,C)
ii) – – A,B,C
iii) T = C
iv) C = B
v) B = A
vi) A: = T

shaalaa.com
Notations for Algorithms
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 7: Composition and Decomposition - Evaluation - Section - D [पृष्ठ १०१]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
अध्याय 7 Composition and Decomposition
Evaluation - Section - D | Q 2. | पृष्ठ १०१
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×