Advertisement
Guest User

Untitled

a guest
May 28th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #include <rectangle.h>
  2. #include <circle.h>
  3. #include <triangle.h>
  4. #include <stdio.h>
  5. #include <string>
  6. using namespace std;
  7. int main(void)
  8. {
  9. string muoto;
  10. double length, width;
  11.  
  12. printf("Select the shape:\n");
  13. scanf("%s", muoto);
  14.             if(muoto='r'){
  15.                            printf("%s",muoto);
  16.                            printf("Enter the parameters:\n");
  17.                            scanf("%d %d", &length, &width);
  18.                            printf("The area is %d",rectangle(length,width));
  19.                            }
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement