Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;namespace Practicum{class Program{public static int sum(int a, int b){if (b == 0) return a;return sum(a+1, b-1);}static void Main(string[] args){int a = int.Parse(Console.ReadLine());int b = int.Parse(Console.ReadLine());Console.WriteLine(sum(a,b));}}}
Advertisement
Add Comment
Please, Sign In to add comment