In this exercise, we learn how to write a C program to find square of a number?. We will write the C program to find a square of a number. How to display input number square C programming. Logic to find a square of a given number in C programming.
Example,
The below program ask the user to enter the value. After getting the value from the user it will calculate the square of entered number by using arithmetic multiplication operator.
Output1:
Please Enter any integer Value : 20
square of a given number 20.00 is = 400.00
Output2:
Please Enter any integer Value : 4.5
need an explanation for this answer? contact us directly to get an explanation for this answersquare of a given number 4.50 is = 20.25