sahajjain01

04.Input the side and calculate area of square.

Aug 16th, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. //Program to input the side and calculate area of square.
  2. #include<stdio.h>
  3. #include<conio.h>
  4.  
  5. void main()
  6. {
  7.     float side;
  8.  
  9.     clrscr();
  10.  
  11.     printf("Enter side of the square: ");
  12.     scanf("%f", &side);
  13.     printf("The area of square of side %f is: %f", side, side*side);
  14.  
  15.     getch();
  16. }
Advertisement
Add Comment
Please, Sign In to add comment