हिंदी

Write down the main method which calls the following method: int square(int a) { return(a*a); } - Computer Applications

Advertisements
Advertisements

प्रश्न

Write down the main method which calls the following method: 

int square(int a)
{
    return(a*a);
}
कोड लेखन

उत्तर

int z = square(S); 
(or) 
int c = 8; 
int z = square(c); 
(or) 
int z = square(ob.nextlnt()); // ob is the Scanner object
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: User - Defined Methods - EXERCISES [पृष्ठ ३३७]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 5 User - Defined Methods
EXERCISES | Q VI. 6. | पृष्ठ ३३७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×