Ropa
Ropa
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ropa
{
class Program
{
static void Main(string[] args)
{
int num1, num2, num3;
Console.WriteLine("Enter the First number: ");
num1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter the Second number: ");
num2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter the Third number: ");
num3 = Convert.ToInt32(Console.ReadLine());
}
else
{
if (num2 > num1 && num2 > num3)
{
Console.WriteLine(num2 + " Is the biggest");
}
else
{
if (num3 > num1 && num3 > num2)
{
Console.WriteLine(num3 + " Is the biggest");
}
}
}
Console.ReadLine();
}
}
}
Question 2
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ropa
{
class Program
{
static void Main(string[] args)
{
Console.Write("Enter a number (0 to 999): ");
int number = Convert.ToInt32(Console.ReadLine());
if (number > 0)
{
if (number < 10)
words += unitsMap[number];
else
words += teensMap[number - 10];
}
return words;
}
}
}
Question 3
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ropa
{
class Program
{
static void Main(string[] args)
{
Console.Write("Enter a positive integer (N): ");
int N = Convert.ToInt32(Console.ReadLine());
Console.ReadKey();
}
}
Question 4
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ropa
{
class Program
{
static void Main(string[] args)
{
Console.Write("Enter a positive integer (N): ");
int N = int.Parse(Console.ReadLine());
Question 5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ropa
{
class Program
{
static void Main(string[] args)
{
int[] array = { 4, 1, 1, 4, 2, 3, 4, 4, 1, 2, 4, 9, 3 };
int maxFrequency = 0;
int mostFrequentElement = 0;
return mostFrequentElement;
}
Question 6
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Enter three integers:");
int num1 = Convert.ToInt32(Console.ReadLine());
int num2 = Convert.ToInt32(Console.ReadLine());
int num3 = Convert.ToInt32(Console.ReadLine());
Question 7