Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. 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
Advertisement