Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char shapeTriangle(int x, int y, int z)
- {
- char type;
- if (x == y && y == z && x == z)
- type = 'E';
- else
- ......
- return type;
- }
- void printInfo(int x, int y, int z, char type)
- {
- shapeTriangle(x, y, z); // function call together with 3 user inputs
- switch(type)
- {
- case 'E' : cout << "==> Equilateral triangle" << endl;
- ......
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement