using System.Runtime.InteropServices; namespace Alpha { class Beta { [DllImport("msvcrt.dll")] static extern int scanf(string format, __arglist); [DllImport("msvcrt.dll")] static extern int printf(string format, __arglist); static void Main() { int a = 0; int b = 0; unsafe { scanf("%d%d", __arglist(&a, &b)); } printf("%d + %d = %d ", __arglist(a, b, a + b)); } } }