In Computer programming, there are four (4) common data types and these include:
- Integer type (int):
- Floating point type (float)
- Boolean (bool)
- String (str)
<h3>The kinds of data type.</h3>
In Computer programming, there are four (4) common data types and these include:
- <u>Integer type (int):</u> it is used for storing whole numbers such as 1, 2, 3, 4, ..... 2,147,483,647.
- <u>Floating point type (float):</u> it is used for defining real numbers that have a decimal point such as 0.009, 9.87, 5.6, etc.
- <u>Boolean (bool):</u> it allow users to combine keywords with Boolean operators (quotes, AND, OR, near/n) as either true or false.
- <u>String (str):</u> it is used for data values that are made up of ordered sequences of characters.
Read more on a data types here: brainly.com/question/25619349
Of course yes, and that depends of the type of content that you eaten =D
Media is a source of good information for to create your opinion.
Best regards
A True A storyboard is hardware installed directly onto the motherboard or using a <span>Peripheral device</span>
Depending on the type of file, it normally runs or opens.
<h2>Solution :</h2>
The given problem is solved in Python.
def ComputeSquare():
side = float(input('Enter the side of the square: '))
if side > 0:
perimeter = 4 * side
area = side * side
print('Perimeter of the square is:',
perimeter, 'unit.')
print('Area of the square is:', area, 'square unit.')
<h3> else:</h3>
print('Invalid input.')
ComputeSquare()
<h2>Explanation :-</h2>
- In this program, we create a function ComputeSquare() to calculate the perimeter and area of a square.
- The function asks the user to enter the side of the square. The side is then stored in a variable.
- Now, we check whether the side is greater than 0 or not using if-else statement.
- If the condition is true, the perimeter and area is calculated which is displayed using print() statement.
- If the condition is false, the else blocks executes printing the error message.
<h3>Refer to the attachment for output.</h3>