fa
Feedback
نصائح و استشارات برمجية

نصائح و استشارات برمجية

رفتن به کانال در Telegram

• نصائح واستشارات برمجية متعلقة باسئلة تم طرحها • لطرح استفسار او سؤال: @m4md24

نمایش بیشتر
1 443
مشترکین
-224 ساعت
-77 روز
+530 روز
آرشیو پست ها
sticker.webp0.07 KB

• تقدر تكتبي كدا ↓
var = sum*sum
• او كدا ↓
var = pow(sum, 2)
■ للمعلومة عشان تستخدمي دالة الجذر والتربيع لازم تستدعي مكتبة math ↓
#include <math.h>

الاولي صح والتانيه تتكتب ازي
الاولي صح والتانيه تتكتب ازي

sticker.webp0.07 KB

شوف الموقع دا ⬇️: m3md69.github.io/NULLEXIA فيه دورات تعليمية لناس بتعرف تشرح .. كل اللي عليك انك تروح لقسم التعلم و تختار اللي عايزه .. الناس اللي بتشرح مختارهم بنفسي

عايزة اسم كورس كويس ف ال. python.

sticker.webp0.07 KB

public class SumFinder { public static void main(String[] args) { int n = findNumberWithIdenticalDigits(); int sum = calculateSum(n); System.out.println("The number is " + n + " and the sum from 1 to " + n + " is " + sum); } private static int findNumberWithIdenticalDigits() { int n = 1; while (true) { int sum = calculateSum(n); if (hasIdenticalDigits(sum)) { return n; } n++; } } private static int calculateSum(int n) { return (n * (n + 1)) / 2; } private static boolean hasIdenticalDigits(int number) { String numberStr = String.valueOf(number); char digit = numberStr.charAt(0); for (int i = 1; i < numberStr.length(); i++) { if (numberStr.charAt(i) != digit) { return false; } } return true; } }

2. Write a Java program that finds a positive integer n such that the sum of all the integers: 1 + 2 + 3 + …. + n is a number between 100 and 1000000 whose two/ three digits are identical. As output, the program displays the integer n and the corresponding sum. Your program MUST be structured into three methods: The main method and two other methods; one to find the sum from 1 to n, and another to prove that the digits are identical The following is a sample of a possible run: run: The number is 22 and the sum from 1 to 22 is 253 The number is 33 and the sum from 1 to 33 is 561 The number is 44 and the sum from 1 to 44 is 990 The number is 55 and the sum from 1 to 55 is 1540 The number is 66 and the sum from 1 to 66 is 2211 The number is 77 and the sum from 1 to 77 is 3003 The number is 88 and the sum from 1 to 88 is 3916 The number is 99 and the sum from 1 to 99 is 4950 The number is 111 and the sum from 1 to 111 is 6216 The number is 222 and the sum from 1 to 222 is 24753 The number is 333 and the sum from 1 to 333 is 55611 The number is 444 and the sum from 1 to 444 is 98790 BUILD SUCCESSFUL (total time: 0 seconds)

sticker.webp0.07 KB

• ابحث عنها في اليوتيوب، اسم الموضوع ⬇️ - flowchart او - خرائط التدفق

IMG_20231112_185312_431.jpg0.90 KB

ياخي أنا أدرس محاسبه مستوى اول.ومعنا ماده الحاسوب اشتي أفهم في الخوارزميات..ولا فهمت حاجه فيها

sticker.webp0.07 KB

حدد اللي عايزو و بعدين اعمل الاختصارة دي، دا لو بتستخدم برنامج من برامج شركة JetBrains⬇️ alt + shift + ctrl + j

يعني كلمه مكرره بحذفهم مع بعض

كيف احذف اكثر من كلمه بوقت واحد

sticker.webp0.07 KB

• اه ممكن، زي كدا ↓
#include <iostream>
#include <cstdlib>
#include <ctime>

using namespace std;

int main() {
    srand(static_cast<unsigned int>(time(0)));
    int randomNumber = rand() % 31 + 20;
    cout << "Random number between 20 and 50: " << randomNumber << endl;
    return 0;
}