Computer Science, asked by ekatasingh9425, 10 hours ago

Que. 1 - Write a program read A number and calculate square of that number.​

Answers

Answered by Anonymous
3

C Program to calculate the square of a number:

1} #include<stdio.h>

2} int main()

3} {

4} printf("Please Enter any integer Value : ");

5} scanf("%f", &number);

6} square = number * number;

7}printf("square of a given number %.2f is = %.2f", number, square);

8} return 0;

Hope it is helpful to you

Similar questions