using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace oprovr
{
class program
{
public int fun(int a, int b)
{
return(a+b);
}
public int fun(int a, int b, int c)
{
return(a+b+c);
}
public string fun(string a, string b)
{
return(a+b);
}
static void Main(string[] args)
{
//Console.WriteLine("enter values");
//int a=Convert.ToInt32(Console.ReadLine());
//int b=Convert.ToInt32(Console.ReadLine());
program f= new program();
int c=f.fun(3,5);
int b=f.fun(1,2,3);
string s = f.fun("over", "loading");
Console.WriteLine("two sum" +c);
Console.WriteLine("three sum" +b);
Console.WriteLine(s);
Console.ReadKey();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace oprovr
{
class program
{
public int fun(int a, int b)
{
return(a+b);
}
public int fun(int a, int b, int c)
{
return(a+b+c);
}
public string fun(string a, string b)
{
return(a+b);
}
static void Main(string[] args)
{
//Console.WriteLine("enter values");
//int a=Convert.ToInt32(Console.ReadLine());
//int b=Convert.ToInt32(Console.ReadLine());
program f= new program();
int c=f.fun(3,5);
int b=f.fun(1,2,3);
string s = f.fun("over", "loading");
Console.WriteLine("two sum" +c);
Console.WriteLine("three sum" +b);
Console.WriteLine(s);
Console.ReadKey();
}
}
}
No comments:
Post a Comment