Computer Science, asked by avi4653, 9 months ago

Write a program to with methods -

int peri_Square(int s) : to find perimeter of a square with given side.

int peri_Rect(int a, int b) : to find perimeter of a rectangle with given length and width.

Write a main method to invoke the following methods and pint the output.

Sample Input : Enter side of square in cms – 4

Sample Output : Perimeter of the square with side 4cm is 16cm.

Sample Input : Enter length of rectangle in cms – 6

Enter width of rectangle in cms – 3

Sample Output : Perimeter of the rectangle is 18cm.​

Answers

Answered by shaheen11v
0

Answer:

dgigdigchkxkhfkhdky

Explanation:

fkhiydgkxkgdkhdkvxmvxgkxmv

Similar questions