-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathChoice.cpp
More file actions
42 lines (39 loc) · 784 Bytes
/
Choice.cpp
File metadata and controls
42 lines (39 loc) · 784 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
//{ Driver Code Starts
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
class Solution
{
public:
vector<int> arrayForm(int a, int b, int c)
{
vector<int> v;
v.push_back(a);
v.push_back(b);
v.push_back(c);
return v;
}
string stringForm(int a, int b, int c)
{
return to_string(a) + to_string(b) + to_string(c);
}
};
//{ Driver Code Starts.
int main()
{
int t;
cin >> t;
while (t--)
{
int a, b, c;
cin >> a >> b >> c;
Solution obj;
vector<int> res = obj.arrayForm(a, b, c);
for (auto x : res)
cout << x << " ";
cout << "\n";
cout << obj.stringForm(a, b, c) << "\n";
}
return 0;
}
// } Driver Code Ends