using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication13
{
class obj
{
public int show()
{
int a=5;
int b=10;
int c = a + b;
return c;
}
public static void Main (String []args)
{
obj ob=new obj();
int d=ob.show();
Console.WriteLine("the sum is " + d);
}
}
}
No comments:
Post a Comment