Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Program to input the side and calculate area of square.
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- float side;
- clrscr();
- printf("Enter side of the square: ");
- scanf("%f", &side);
- printf("The area of square of side %f is: %f", side, side*side);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment