Computer Science, asked by joshikc2007, 3 months ago

write a program using function to compute area of the following and return the value from the function (a). area of square=side*side, ​


joshikc2007: nope i need java only
lavinamathew80: is it ok if i put what i saw from a site?
lavinamathew80: https://beginnersbook.com/2014/01/java-program-to-calculate-area-of-square/
lavinamathew80: check here
lavinamathew80: got it?
lavinamathew80: glad to help! :D
lavinamathew80: my answer got deleted im sorry
ceeriisbox: yha
joshikc2007: Thankzz
ceeriisbox: it my pleasure

Answers

Answered by ceeriisbox
2

Answer:

#include <stdio.h>

int main()

{

int s=13;

int area_square=s*s;

printf("Area of the square=%d",area_square);

}

Similar questions
Math, 9 months ago