class CallingFunc
{
void Input()
{
int a;
int b;
int c,d,e,f;
a = Convert.ToInt32(Console.ReadLine());
b = Convert.ToInt32(Console.ReadLine());
Console.ReadLine();
System.Console.WriteLine("Before Increment Inside Input \na=" + a + " \nb =" + b);
Console.ReadLine();
Increment(a, b, out c, out d, out e, out f);
Console.ReadLine();
System.Console.WriteLine("After Increment Inside Input \n a=" + a + " \n b =" + b);
System.Console.WriteLine(c);
System.Console.WriteLine(d);
System.Console.WriteLine(e);
System.Console.WriteLine(f);
}
void Increment( int a,int b, out int c, out int d, out int e, out int f)
{
a = a * 100;
b = b * 500;
Console.ReadLine();
System.Console.WriteLine("Inside Increment \n a=" + a + " \n b =" + b);
c=a+b;
d=a-b;
e=a*b;
f=a/b;
}
public static void Main()
{
CallingFunc o = new CallingFunc ();
o.Input();
Console.ReadLine();
}
}
No comments:
Post a Comment