1.AreaParameter.cs File
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class AreaParameter
{
static void Main(string[] args)
{
string s;
Console.Write("Enter your Word..>");
s = Console.ReadLine();
double a, b, c;
a = 2.5;
b = 2 * 3.14 * a;
c = 3.14 * a * a;
Console.Write("Area=" + b);
Console.WriteLine();
Console.Write("Perimeter= " + c);
Console.WriteLine();
Console.Write("Integer= " + sizeof(int));
Console.WriteLine();
Console.Write("Float= " + sizeof(float));
Console.WriteLine();
Console.Write("Double= " + sizeof(double));
Console.WriteLine();
foreach (char h in s)
{
Console.WriteLine("ASCII= "+(int)h);
}
Console.ReadLine();
}
}
}

0 comments
Post a Comment