Find perimeter of a square

Find the perimeter of a square

Write a method that will ask for a user to input the length of one side of a square and outputs the squares perimeter.

Example 1:


input data:
5
output:
20

Example 2:


input data:
21
output:
84
View Java Solution

Seda
Seda Kunda is a web designer and developer with a degree in Computer Science and a great passion for code. Besides code, she enjoys pepperoni pizza, watching the bachelor and sleeping in on Saturdays.
Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn