Q:

Calculate Squre Program Using Java

0

This Program is used to calculate Square Program using Java.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

// squre program 
class squ 
{ 
void calc(int x) 
{ 
int y; 
y = x*x; 
System.out.println("Square : "+y); 
} 

public static void main(String arg[]) 
{ 
squ a = new squ(); 
a.calc(5); 
} 
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now