الثلاثاء، 8 مايو 2018

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication31
{
    class Program
    {
        // خلدون عصفور
        // برنامج لحساب قيمة التيار
        static void Main(string[] args)
        {
            double V;
            double I;
            double R;
            Console.WriteLine("please enter voltage");
            V= double.Parse(Console.ReadLine());

            Console.WriteLine("please enter resistor");
           R= double.Parse(Console.ReadLine());

           I = V / R;

           Console.WriteLine("The current for V = " +V+ " and R = " +R+ " is " +I+ " ampere");
           Console.ReadKey();
        }
    }
}

الاثنين، 7 مايو 2018

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// خلدون عصفور
// برنامج لحساب العمر بعد 20 سنة
namespace ConsoleApplication30
{
    class Program
    {
        static void Main(string[] args)
        {
            int Age;
            string yourName;
            int c;
            Console.WriteLine("unter your name?");
            yourName = Console.ReadLine();

            Console.WriteLine("unter your age?");

            Age = int.Parse(Console.ReadLine());
            c = Age + 20;

            Console.WriteLine(" hello, your Name is " + yourName + " and your age is " + Age + " you will be " + c + " after 20 years ");
            Console.ReadKey();
        }
    }
}

الخميس، 3 مايو 2018

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication68
{
    class Program
    {
        static void Main(string[] args) //عمل الطالب خلدون عصفور
        {
            int a; // حساب الباقي 
            int b;
            int c;
          
            
            Console.WriteLine(" enter the first num");
           a = int.Parse(Console.ReadLine());
            Console.WriteLine(" enterthe second num");
            b = int.Parse(Console.ReadLine());
            c = a%b;
            Console.WriteLine( "The rest is" + c);
            Console.ReadKey();
        }
    }
}




using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication68
{
    class Program
    {
        static void Main(string[] args) // عمل الطالب خلدون عصفور
        {
            string name;// برمجة حساب مساحة ومحيط المستطيل
            int Width;
            int Length;
            int a;
            int d;

            Console.WriteLine(" Please enter your name?");
           name = Console.ReadLine();
           Console.WriteLine(" For Rectangle please enter Width");
           Width = int.Parse(Console.ReadLine());
           Console.WriteLine(" For the same Rectangle please enter Length");
           Length = int.Parse(Console.ReadLine());
           a = Width * Length;
           d = Width * 2 + Length * 2;

           Console.WriteLine(" Mr " + name + " The area of the rectangle with length of " + Length + " and width of " + Width + " is " + a);
            Console.WriteLine(" Mr " + name + " The Circumference of the rectanagle is " + d);

            Console.ReadKey();

        }
    }
}





using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication68
{
    class Program
    {
        static void Main(string[] args) // عمل الطالب خلدون عصفور
        {
            string name;// برمجة حساب مساحة ومحيط 
            int r;
            double a;
            double d;
            double b = 3.14;
            Console.WriteLine(" Please enter your name?");
           name = Console.ReadLine();
           Console.WriteLine(" Please enter radius of the circle");
           r= int.Parse(Console.ReadLine());

           a = (r*r)* b ;
           d =  r*2*b;

          Console.WriteLine(" Mr "+ name +" The area of the circle is "+ a + " and the Circumference is " + d);
            Console.ReadKey();

        }
    }
}

الثلاثاء، 1 مايو 2018

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//program
 //خلدون عصفور
//برنامج لحساب المساحة
namespace ConsoleApplication68
{
    class Program
    {
        static void Main(string[] args)
        {
            int area;
            int L;
            int W;
          
            
            Console.WriteLine("plese enter length");
           L = int.Parse(Console.ReadLine());
            Console.WriteLine("plese enter width");
            W = int.Parse(Console.ReadLine());
            area = L * W;
            Console.WriteLine("the area is " +  area);
            Console.ReadKey();
        }
    }
}

الثلاثاء، 24 أبريل 2018

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication72
{
    class Program
    {
        static void Main(string[] args)
        {
            int Age;
            double Weight;
            string yourName;
            Console.WriteLine("What is ypur name?");
            yourName = Console.ReadLine();

            Console.WriteLine("What is ypur age?");

            Age = int.Parse(Console.ReadLine());

            Console.WriteLine("What is your Weight");
            Weight = double.Parse(Console.ReadLine());

            Console.WriteLine("your Name is {0} and your age is {1} and your weight is {2}", yourName, Age, Weight);
            Console.ReadKey();

        }
    }
}

الاثنين، 23 أبريل 2018

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication22
{
    class Program
    {
        static void Main(string[] args)
        {
            int x = 42;
            double pi = 3.14;
            char y = 'z';
            bool isonline = true;
            string firstName ="david";
            Console.WriteLine (x);
            Console.WriteLine (pi);
            Console.WriteLine (y);
            Console.WriteLine(isonline);
            Console.WriteLine(firstName);
            Console.ReadKey();


        }
    }
}

الثلاثاء، 17 أبريل 2018

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication21
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("************************");
            Console.ReadKey();
            Console.WriteLine("*     name: khaldon asfor        *");
            Console.ReadKey();
            Console.WriteLine("*   class: 10th grade  *");
            Console.ReadKey();
            Console.WriteLine("*     school:tss       *");
            Console.ReadKey();
            Console.WriteLine("************************");
            Console.ReadKey();
        }
    }
}