2 odpowiedzi
+ 10
// Just syntax errors usually committed by beginners.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SoloLearn
{
class Program
{
static void Main(string[] args)
{
// program to find your age group
int age=20;
int YourAge;
YourAge=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("your are of{0}",YourAge);
if (YourAge >= age )
Console.WriteLine("You are an ADULT");
else if (YourAge<age && YourAge>12)
Console.WriteLine ("You are a teen");
else
Console.WriteLine("You are A KID");
}
}
}
+ 3
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SoloLearn
{
class Program
{
static void Main(string[] args)
{
// program to find your age group
int age =20;
int YourAge;
YourAge =Convert.ToInt32(Console.ReadLine());
Console.WriteLine("your are of {0}",YourAge);
if (YourAge>= age )
{
Console.WriteLine("You are an ADULT");
}
else if (YourAge<age && YourAge>12)
{
Console.WriteLine ("You are a teen");
}
else
{
Console.WriteLine("You are A KID");
}
}
}
}