المشاركات

int x = 33;             if (x == 8)             {                 Console.WriteLine("value of x is 9");             }             else if (x == 18)             {                 Console.WriteLine("value of x is 18");             }             else if (x == 33)             {                 Console.WriteLine("value of x is 33");             }             else             {                 Console.WriteLine("no match");             }        ...
int age = 17;             if (age > 14)             {                 if (age > 18)                 {                     Console.WriteLine("adult");                 }                 else                 {                     Console.WriteLine("teenagers");                 }             }             else             {                 if (age > 0)                 {           ...
 int mark = 100;             if (mark >= 50)             {                 Console.WriteLine("you passed");                 if (mark == 100)                 {                     Console.WriteLine("perfect");                 }             }             else             {                 Console.WriteLine("you failed");             }             Console.ReadKey();
int b = 8;             int a = 8;             if (a == b)             {                 Console.WriteLine("equal");             }             Console.ReadKey();
  int x = 8;             int y = 3;             if (x > y)             {                 Console.WriteLine("x is greater than y");             }             Console.ReadKey();
//naseem aboremeleh             double v;             double r1;             double r2;             double i;             double i1;             double i2;             double rt;             Console.WriteLine("plz enter v");             v=double.Parse(Console.ReadLine());             Console.WriteLine("plz enter R1");             r1=double.Parse(Console.ReadLine());             Console.WriteLine("plz enter R2");             r2=double.Parse(Console.ReadLine());             rt=1/(1/r1+1/r2);             i= v/rt;     ...
//naseem aboremeleh             // برناج يقوم بحساب rt , v1,v2,i,v             double v;             double r1;             double r2;             double i;             double v1;             double v2;             double rt;             Console.WriteLine("plz enter voltage");//ادخل قيمة الجهد             v = double.Parse(Console.ReadLine());//قسمة الجهد             Console.WriteLine("plz enter r1");//ادخل قيمة المقاومة الاولى             r1 = double.Parse(Console.ReadLine());//قيمة المقاومة الاولى             Console.WriteLine("plz enter r2");//ادخل قيمة المقاومة الثانية     ...
//naseem aboremeleh             //برنامج يقوم بتحويل الدولار الى الشيكل             double dollar;             double shakel;             double change;             Console.WriteLine("plz enter dollar");// ادخل قيمة الدولار             dollar =double.Parse(Console.ReadLine());//قيمة الدولار             Console.WriteLine("plz enter change value");//ادخل قيمة تحويل العملة             change = double.Parse(Console.ReadLine());//قيمة التحويل             shakel = dollar * change;// القيمة بالشيكل             Console.WriteLine("the value in shakel is " + shakel);// اطبع قيمة المتحول بالشيكل             Console.ReadKey();           ...
//naseem aboremeleh             // برنامج الضريبة ل 3 منتوجات             string item1;             double price1;             string item2;             double price2;             string item3;             double price3;             double b;             double c;             double d;             Console.WriteLine("plz enter item1");             item1 = Console.ReadLine();             Console.WriteLine("plz enter price");             price1 = double.Parse(Console.ReadLine());             Console.WriteLine("plz enter item2"); ...
// naseem             // برنامج يقوم بحساب التيار الكهربائي في دائرة مع مقاومة وبطارية            double voltage;            double resistance;            double i;         Console.WriteLine("plz enter the voltage");         voltage = double.Parse(Console.ReadLine());             Console.WriteLine("plz enter the resistance");             resistance = double.Parse(Console.ReadLine());            i= voltage / resistance;             Console.WriteLine(" the voltage is " + voltage + "the resistance is " + resistance + "the currnet is " + i);             Console.ReadKey();
   string name;             int age;             int NewAge;             Console.WriteLine("what is your name");             name  = Console.ReadLine();             Console.WriteLine("what is your age");             age =  int.Parse(Console.ReadLine());             NewAge = age + 20;             Console.WriteLine("hello, your name is " + name + " your age is " + age + " you will be " + NewAge + "  after 20 years");             Console.ReadKey();
// naseem برنامج يظهر لنا باقي القسمة             int a;             int b;             int c;             Console.WriteLine("how much a");             a = int.Parse(Console.ReadLine());             Console.WriteLine("how much b");             b = int.Parse(Console.ReadLine());             c = a % b;             Console.WriteLine("c is" + c);             Console.ReadKey();
 //naseem برنامج يقيس مساحة ومحيط المستطيل             int l;             int w;             int area;             string name;             int cicumference;             //asks for name             Console.WriteLine("enter your name");             name = Console.ReadLine();             Console.WriteLine("please enter leagth");             l = int.Parse(Console.ReadLine());             Console.WriteLine("please enter width");             w = int.Parse(Console.ReadLine());             area = l * w;             cicumference = (l + w) * 2;   ...
//naseem برنامج يقيس مساحة ومحيط الدائرة             int RADIUS;             double CIRCLEA;             double AREA;             double circumference;             Console.WriteLine("how much the RADIUS");             RADIUS= int.Parse(Console.ReadLine());             Console.WriteLine("the AREA IS");            AREA= RADIUS * RADIUS * 3.14;            Console.WriteLine(AREA);            Console.WriteLine("the circumference is");            circumference = 2 * 3.14 * RADIUS;            Console.WriteLine(circumference);             Console.ReadKey();
//naseem برنامج يقيس مساحة الدائرة             int RADIUS;             double CIRCLEA;             double AREA;             Console.WriteLine("how much the RADIUS");             RADIUS= int.Parse(Console.ReadLine());                     Console.WriteLine("the AREA IS");            AREA= RADIUS * RADIUS * 3.14;             Console.WriteLine(AREA);             Console.ReadKey();
{//NASEEM برنامج يقيس محيط المستطيل             int length;             int width;             int circumference;             Console.WriteLine("how much the length");             length = int.Parse(Console.ReadLine());             Console.WriteLine("how much the width");             width = int.Parse(Console.ReadLine());             Console.WriteLine("the circumference is");             circumference = (length + width) * 2;             Console.WriteLine(circumference);             Console.ReadKey();
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication73 {     class Program     {         static void Main(string[] args)         {             //naseem             // هذالبرنامج يقوم بقياس مساحة المستطيل             int length;           int width;             int area;             Console.WriteLine("please enter length");             length = int.Parse(Console.ReadLine());             Console.WriteLine("please enter width");            width = int.Parse(Console.ReadLine());            area = length * width;     ...
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");           ...
  int x = 42;             double pi = 3.14;             bool isOnline = true;             string firstName = "David";             char y='Z';             Console.WriteLine(x);             Console.WriteLine(pi);             Console.WriteLine(isOnline);             Console.WriteLine(firstName);             Console.WriteLine(y);             Console.ReadKey();