Question : Write a C Program to find Area of Square.
/*Write a C Program to find Area of Square.
Area of Square = Square_Side * Square_Side*/ #include <stdio.h>
intmain()
{intsquare_side, area;
printf("Enter the side of square: ");
scanf("%d", &square_side);
//calculation of the area area = square_side * square_side;printf("Area of the square: %d", area);
return (0);} OUTPUT :
Enter the side of square: 8Area of the square:64Thank you very much for reading carefully, if you have any other questions, you can share it with us through comments, if this information was important to you, please let us know through comments.
Please do comment and share.
Thank You.

No comments:
Post a Comment