Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- // BASENUM ומספר שני POWNUM כתוב תוכנית המגרילה שני מספרים בין 0 ל 5 מספר ראשון
- //Random rnd = new Random();
- //int baseNum = rnd.Next(0, 5);
- //int PowNum = rnd.Next(0, 5);
- //Console.WriteLine("the first number is: " + firstNum);
- //Console.WriteLine("the second number is: " + secNumber);
- //int sum = (int)Math.Pow(baseNum, PowNum);
- //Console.WriteLine(baseNum);
- //------------------------------------------------------------
- //Random rnd = new Random();
- //int num1 = rnd.Next(1, 5);
- //int num2 = rnd.Next(1, 5);
- //Console.WriteLine("num1 = " + num1);
- //Console.WriteLine("num2 = " + num2);
- //bool a = num1 == num2;
- //bool b = num1 % 2 == 0;
- //Console.WriteLine("a = " + a);
- //Console.WriteLine("b = " + b);
- //String str = a.ToString() + b.ToString();
- //Console.WriteLine(str);
- //bool c = str == "TrueTrue";
- //Console.WriteLine("C = " + c);
- //--------------------------------------------------------------
- //Console.WriteLine("PLease enter the hour time");
- //int hour = int.Parse(Console.ReadLine());
- //Console.WriteLine("Please enter the minute time");
- //int minute = int.Parse(Console.ReadLine());
- //if (hour >= 0 && hour <= 23 && minute >= 0 && minute <= 59)
- //{
- // Console.WriteLine("The time is:" + hour + ":" + minute);
- //}
- // if (hour >= 0 && hour <= 24 && minute >= 0 && minute == 60)
- //{
- // Console.WriteLine("The time is:" + (hour + 1) + ":" + "00");
- //}
- //else
- //{
- // Console.WriteLine("Erorr the time is not correct");
- //}
- //--------------------------------------------------
- // tel-aviv team need player that age from 14-18 Or 21 - 26 And height more than 182cm
- //Console.WriteLine("enter your age");
- //int playerAge = int.Parse(Console.ReadLine());
- //Console.WriteLine("enter your height");
- //int playerHeight = int.Parse(Console.ReadLine());
- //if ((playerAge >= 14 && playerAge < 19) || (playerAge >= 21 && playerAge < 27) && playerHeight > 182)
- //{
- // Console.WriteLine("You can play with tel-aviv team");
- //}
- //else
- //{
- // Console.WriteLine("Sory you cant play with the team");
- //}
- //--------------------------------------------------------------
- // כתוב תוכנית המגרילה מספר שבין 0 ל 600 התוכנית תחזיר את השורש הריבועי של המספר שהוגרל הקפד על הודעות מתאימות למשתמש ותיעוד קוד
- Console.WriteLine("enter a number from 0 to 600");
- int userNum = int.Parse(Console.ReadLine());
- double num = Math.Sqrt(userNum);
- Console.WriteLine("the number is" + userNum + "the math is:" + num);
- // תרגיל מסמפר עם 3 תלת-ספרתי ואפשר לקרוא אותו מ ימין לשמאל
- //Console.WriteLine("enter number with 3 digit");
- //int userNum = int.Parse(Console.ReadLine());
- //int R = userNum % 10;
- //int L = userNum / 100;
- //if(R == L)
- //{
- // Console.WriteLine("the number is palindrome");
- //}
- //else
- //{
- // Console.WriteLine("The number is not palindrome");
- //}
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement