-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtut19.cpp
More file actions
44 lines (35 loc) · 943 Bytes
/
Copy pathtut19.cpp
File metadata and controls
44 lines (35 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// #include <iostream>
// using namespace std;
// int sum(int a, int b)
// {
// cout << "Using function two argument " << endl;
// return a + b;
// }
// int sum(int a, int b, int c)
// {
// cout << "Using function three argument " << endl;
// return a + b + c;
// }
// // calculate the volume of cylinder
// int volume( double r , int h)
// {
// return (3.14 * r * r * h);
// }
// // volume of cube
// int volume(int a)
// {
// return a * a * a ;
// }
// // rectangular box
// int volume(int l , int b ,int h)
// {
// return (l * b * h);
// }
// int main()
// {
// cout << "The sum of a + b is: " << sum(4, 5) << endl;
// cout << "The sum of a + b + c is: " << sum(4, 1, 5) << endl;
// cout << "The volume of cuboid is: " << volume(4, 1, 5) << endl;
// cout << "The volume of cylinder is: " << volume(9, 5) << endl;
// cout << "The volume of cube is: " << volume(4) << endl;
// }