الأربعاء، 10 أكتوبر 2018

khaldon asfor
tawfiq mitwalli

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

namespace ConsoleApplication6
{
    class Program
    {
        static void Main(string[] args)
        {
            int mark = 100;
            if (mark >= 50)
                Console.WriteLine("you passed");
            if (mark == 100)
                Console.WriteLine("perfect");
            else
                Console.WriteLine("you fallied");
            Console.ReadKey();
        }
    }
}
    
khaldon asfor
tawfiq mitwale

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

namespace ConsoleApplication5
{
    class Program
    {
        static void Main(string[] args)
        {
           int a = 4 ;
            int b = 4 ;
            if (a==b)
            {
                Console.WriteLine("EQUAL");
            }
            Console.ReadKey();
        }
    }
}

1)khaldon asfor
tawfiq mitwalli

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

namespace ConsoleApplication5
{
    class Program
    {
        static void Main(string[] args)
        {
            int x = 8;
            int y = 3;
            if (x > y)
                Console.WriteLine("is greater then y");
            Console.ReadKey();
        }
    }
}



(2



الاثنين، 8 أكتوبر 2018

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

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {
            int a,c,b;
           
            
                Console.WriteLine("plz enter num ");
                a= int.Parse(Console.ReadLine());

                b = a % 10;
                c = a / 100;
                if (c == b)

              Console.WriteLine("this number is panglaogy ");

                else

                    Console.WriteLine("this number is not panglaogy ");

                Console.ReadKey();
        }
    }
}

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

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

namespace ConsoleApplication36
{
    class Program
    {
        // خلدون عصفور
        // برنامج لحساب قيمة التيار وقيمة الجهد الاول والثاني
        static void Main(string[] args)
        {
            double R1, R2, RT;
            double V, V1, V2;
            double I;
            Console.WriteLine("PLZ enter the V");
            V = double.Parse(Console.ReadLine());
            Console.WriteLine("PLZ enter the R1");
            R1 = double.Parse(Console.ReadLine());
            Console.WriteLine("PLZ enter the R2");
            R2 = double.Parse(Console.ReadLine());
            RT = R1 + R2;
            Console.WriteLine(" the RT IS " + RT+   " OHM");

            I = V / RT;
            Console.WriteLine("the I  IS " + I +   " ABMER");

            V1 = I * R1;
            Console.WriteLine(" the RT IS " + V1+  " VOLT");
            V2 = I * R2;
            Console.WriteLine(" the RT IS " + V2 + " VOLT");
            Console.ReadKey();
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// خلدون عصفور
// برنامج لتحويل من الدولار الى الشيكل
namespace ConsoleApplication35
{
    class Program
    {
        static void Main(string[] args)
        {
            double D;
            double D2;
            double S;

            Console.WriteLine("plz enter the value dolar");
            D2 = double.Parse(Console.ReadLine());

            Console.WriteLine("plz enter the  dolar");
            D = double.Parse(Console.ReadLine());


            S = D * D2;
            Console.WriteLine("your SHEKEL"+ S);
            Console.ReadKey();
        }
    }
}

الخميس، 10 مايو 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)
        {
            string a;
            string f;
            string g;
            double b;
            double y;
            double o;
            double c;
            double d;
            double p;
            double q;
            double m;
            double n;
            double t;
            double x;
            double s;

            Console.WriteLine(" plz enter  item");
            a = Console.ReadLine();
            Console.WriteLine("please price");
            b = double.Parse(Console.ReadLine());

            Console.WriteLine(" plz enter  item 2");
            f = Console.ReadLine();
            Console.WriteLine("please price 2");
            y = double.Parse(Console.ReadLine());

            Console.WriteLine(" plz enter  item 3 ");
            g = Console.ReadLine();
            Console.WriteLine("please price 3 ");
            o = double.Parse(Console.ReadLine());

            c = b * 0.17;
            d = c + b;

            p = y * 0.17;
            q = p + y;

            m = o * 0.17;
            n = o + m;

            t = d + q + n;
            x = c + p + m;
            s = b + y + o; 

            Console.WriteLine(" ******************************************************* ");
            Console.WriteLine("                        tax invaice                      ");
            Console.WriteLine(" ******************************************************* ");
            Console.WriteLine("                         the price                             ");
            Console.WriteLine("       item                                        price           ");
            Console.WriteLine("       {0}                                          {1}  ", a, b);
            Console.WriteLine("       {0}                                          {1}  ", f, y);
            Console.WriteLine("       {0}                                          {1}  ", g, o);
            Console.WriteLine("                                                                    ");
            Console.WriteLine("       total                                       " + s);
            Console.WriteLine("       tax                                         " + x);
            Console.WriteLine("       total                                       " + t);
            Console.WriteLine("*********************************************************");
            Console.WriteLine(" *************thank you......,,,,,,,,,,,,,,,#############");
            Console.ReadKey();

        }
    }
}