Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
codershiyar committed May 9, 2020
1 parent dc5e8ed commit 1d34986
Show file tree
Hide file tree
Showing 27 changed files with 45 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 27 additions & 0 deletions Lesson 48 - الدرس/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

public class App{

App(){

}
public static void main(String[] args) {

int number1 = 10;
int number2 = 20;
System.out.println("العدد الأكبر يكون : " + Math.max(number1, number2));
System.out.println("العدد الأصغر يكون : " + Math.min(number1, number2));
System.out.println("الجذر تربيعي للعدد 36 يكون " + Math.sqrt(36));
int number3 = -15;
System.out.println("القيمة مطلقة للعدد - 15 يكون : " + Math.abs(number3));

double random_number = Math.random();
System.out.println("العدد العشوائي يكون : " + random_number);
}

}






18 changes: 18 additions & 0 deletions Lesson 48 - الدرس/math_java.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@






// Math.max(x,y) يستخدم لإيجاد العدد الأكبر بين عددين
// Math.min(x,y) يستخدم لإيجاد العدد الأصغر بين عددين
// Math.sqrt(x) يستخدم لعرض الجذر التربيعي للعدد الذي تحدده

// Math.abs(x) يستخدم لتحويل عدد سلبي إلى عدد إيجابي
// Math.random() يقوم بجلب لك عدد عشوائي بين 0 و 1



Coder Shiyar - مهندس شيار
--------------------------------
https://youtube.com/codershiyar
File renamed without changes.
File renamed without changes.

0 comments on commit 1d34986

Please sign in to comment.