Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int rec_op(string n, List<string> op)
- {
- int larg = n.Length;
- Console.WriteLine(n);
- Console.WriteLine(op);
- if(larg == 2)
- {
- if(op[0] == "suma")
- {
- return n[0] + n[1];
- }
- else if (op[0] == "resta")
- {
- return n[0] - n[1];
- }
- else if (op[0] == "multi")
- {
- return n[0] * n[1];
- }
- else
- {
- return n[0] / n[1];
- }
- }
- else
- {
- if (op[0] == "suma")
- {
- List<int> expr1 = new List<int>();
- expr1=suma_list(n[0],rec_op())
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement