Professional Documents
Culture Documents
Ejercicio de Return
Ejercicio de Return
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class UTILS
{
if (a>b)
{
return a;
if (b>a)
{
return b;
}
static void Main(string[] args)
{
int c;
mayor(c);
Console.WriteLine(c);
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class UTILS
{
if (a > b)
{
return a;
}
else
{
return b;
}
}
static void Main(string[] args)
{
int c = 0;
int d = 0;
Console.WriteLine(mayor(c,d));
}
}
}