Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <rectangle.h>
- #include <circle.h>
- #include <triangle.h>
- #include <stdio.h>
- #include <string>
- using namespace std;
- int main(void)
- {
- string muoto;
- double length, width;
- printf("Select the shape:\n");
- scanf("%s", muoto);
- if(muoto='r'){
- printf("%s",muoto);
- printf("Enter the parameters:\n");
- scanf("%d %d", &length, &width);
- printf("The area is %d",rectangle(length,width));
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement