Advertisement
rafikamal

Find the Area of a Rectangle

Jan 3rd, 2013
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2.        
  3. int main()
  4. {
  5.     double x;
  6.     double y;
  7.     double area;
  8.    
  9.     printf("Enter x: ");
  10.     scanf("%lf", &x);
  11.     printf("Enter y: ");
  12.     scanf("%lf", &y);
  13.    
  14.     area = x * y;
  15.    
  16.     printf("Area = %lf\n", area);
  17.  
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement