1 solutions
-
0
C++ :
#include<iostream> using namespace std; inline int calArea(int length,int width){ return length*width; } inline int calPerimeter(int length,int width){ return 2*(length+width); } int main(){ int length,width; cin>>length>>width; int area=calArea(length,width); int primeter=calPerimeter(length,width); cout<<area<<' '<<primeter<<endl; return 0; }
- 1
Information
- ID
- 18358
- Time
- 1000ms
- Memory
- 30MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By