मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता ११

Define a function to double a number in two different ways: (1) n + n, (2) 2 x n - Computer Science

Advertisements
Advertisements

प्रश्न

Define a function to double a number in two different ways:

(1) n + n,

(2) 2 x n

टीपा लिहा

उत्तर

(1) Double (n)
– – inputs: n is a real number or an integer, n > 0
– – Outputs: y is a real number or an integer such that y = n + n

(2) Double (n)
– – inputs: n is a real number or an integer, n > 0
– – Outputs: y is a real number or an integer such that y = 2 x n

shaalaa.com
Decomposition
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 7: Composition and Decomposition - Evaluation - Section - C [पृष्ठ १०१]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
पाठ 7 Composition and Decomposition
Evaluation - Section - C | Q 5. | पृष्ठ १०१

संबंधित प्रश्‍न

Why is a function an abstraction?


How do we refine a statement?


Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×