نصائح و استشارات برمجية
Ir al canal en Telegram
• نصائح واستشارات برمجية متعلقة باسئلة تم طرحها • لطرح استفسار او سؤال: @m4md24
Mostrar más1 509
Suscriptores
Sin datos24 horas
+17 días
-930 días
Archivo de publicaciones
الحل لدا الموضوع انك تحلي مسائل و تتعلمي و تشوفي المسائل بتتحل ازاي
16 nov 2023, 13:40
أنا فاهمه كل حاجه خدتها بس لما بيقول أكتب برنامج مش بعرف
16 nov 2023, 13:40
• بتراجعي على الحاجات اللي كتبتيها والمسائل اللي حليتيها و حطيتي عليها تعليقات
• او بتراجعي على شرح الفيديوهات
16 nov 2023, 13:39
أو أنا لو عندي امتحان ف c++ومش مظبطة الدنيا خالص اذاكر منين لحد forعشان اعرف احل البرنامج اللي هيجيلي
16 nov 2023, 13:39
Here are the solutions to your questions:
1. Program in Java to display the value of a number before and after post-increment:
public class PostIncrementExample {
public static void main(String[] args) {
int num = 5;
System.out.println("Original value of num: " + num);
System.out.println("Value of num after post-increment: " + (num++));
System.out.println("Value of num after post-increment: " + num);
}
}
2. Program in Java to multiply a number by 3 using the result operator and display the result:
public class ResultOperatorExample {
public static void main(String[] args) {
int num = 4;
num *= 3; // This is equivalent to: num = num * 3
System.out.println("Result of multiplying the number by 3: " + num);
}
}
3. Program in Java to use the Math functions to round a user-given decimal number to the nearest whole number:
import java.util.Scanner;
public class RoundToNearestWholeNumber {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Enter a decimal number: ");
double decimalNumber = scanner.nextDouble();
long roundedNumber = Math.round(decimalNumber);
System.out.println("Rounded number to the nearest whole number: " + roundedNumber);
}
}
Please try running these programs and let me know if you have any further questions or need any additional assistance!
16 nov 2023, 11:57
• يا غالي، لو مثلا امر واحد عادي لو متحطش اقواس، زي كدا ⬇️
if (1 <= 4) cout << "Done";
• اما لو اكتر من امر فا لازم تحط اقواس، زي كدا ⬇️
if(1 <= 4) {
cout << "Done1";
cout << "Done2";
}
• مش شرط تعمل دا لل if بس، هو في الاصل ينفع لاي موضوع اخر زي for و while و غيرهم16 nov 2023, 11:26
مدام الامر بسطر واحد فا تمام
فا الكود هيتحقق امره زي ما هو
16 nov 2023, 11:21
شباب يعطيكم العافيه
لو ما حطيت إشارة { } لل else هون بصير اشي
16 nov 2023, 11:21
Repost from برمجة - Barmajaa
■ 46 كتاب ملاحظات برمجة و تطوير للمحترفيين لاشهر البرامج واللغات و التقنيات، يضم الأتي ⬇️💙:
- Algorithms
- Android
- Angular2
- Angular JS
- Bash
- C
- C++
- C#
- CSS
- .NET Framework
- Entity Framework
- Git
- Haskell
- Hibernate
- HTML5 Canvas
- HTML5
- IOS
- Java
- JavaScript
- JQuery
- Kotlin
- Latex
- Linux
- MATLAB
- Microsoft SQL Server
- Mongo DB
- MySQL
- Node JS
- Objective C
- Perl
- PHP
- Postgre SQL
- PowerShell
- Python
- React JS
- React Native
- R
- Ruby
- Ruby On Rails
- Spring Framework
- SQL
- Swift
- TypeScript
- VBA
- Visual Basic .Net
- Xamarin .Forms
#كتب_مفيدة 💙
16 nov 2023, 09:45
