English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

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

Advertisements
Advertisements

Question

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

(1) n + n,

(2) 2 x n

Short Note

Solution

(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
  Is there an error in this question or solution?
Chapter 7: Composition and Decomposition - Evaluation - Section - C [Page 101]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 11 TN Board
Chapter 7 Composition and Decomposition
Evaluation - Section - C | Q 5. | Page 101
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×
Our website is made possible by ad-free subscriptions or displaying online advertisements to our visitors.
If you don't like ads you can support us by buying an ad-free subscription or please consider supporting us by disabling your ad blocker. Thank you.