نصائح و استشارات برمجية
Kanalga Telegram’da o‘tish
• نصائح واستشارات برمجية متعلقة باسئلة تم طرحها • لطرح استفسار او سؤال: @m4md24
Ko'proq ko'rsatish1 444
Obunachilar
-324 soatlar
-57 kunlar
+730 kunlar
Postlar arxiv
مينفعش يكون في مسافات بين كل كلمة في اسم المتغير، و يفضل انك تةخديها قاعدة في البرمجة تجنباً للاخطاء
سطر ٧ و ٨ و ٩ و ١٠ و ١١ و ١٢
• دا التصحيح ↓
#include <iostream>
using namespace std;
struct pool {
int data;
pool *next;
};
pool *head = NULL;
void insertion(int value) {
pool *first, *last;
first = new pool;
first->data = value;
if (head == NULL) {
head = first;
first->next = NULL;
} else {
last = head;
while (last->next != NULL) {
last = last->next;
}
last->next = first;
first->next = NULL;
}
}
void display() {
pool *cptr;
if (head == NULL) {
cout << "linked list is empty . ";
} else {
cptr = head;
while (cptr != NULL) {
cout << cptr->data << "\n";
cptr = cptr->next;
}
}
}
int main() {
insertion(10);
insertion(20);
insertion(30);
insertion(40);
insertion(50);
display();
return 0;
}#include <iostream>
using namespace std;
struct pool{
int data;
pool*next;
};
pool*head=NULL;
void insertion(int value)
{
pool*first,*last;
first=new pool;
first->data=value;
if(head==NULL){head=first;first->next=NULL;}
else{
head=last;
while(last->next!=NULL)
{
last=last->next;
}
last->next=first;
first->next=NULL;
}
void display(){
pool*cptr;
if(head==NULL)
{
cout<<"linked list is empty . ";
}
else{
cptr=head;
while(cptr!=NULL)
{
cout<<cptr->data<<"\t\n\t";
cptr=cptr->next;
}
}
}
}
int main()
{
insertion(10);
insertion(20);
insertion(30);
insertion(40);
insertion(50);
display();
return 0 ;
}
#include <iostream>
using namespace std;
int main() {
int num1, num2;
cout << "Enter first number: ";
cin >> num1;
cout << "Enter second number: ";
cin >> num2;
int lcm = (num1 > num2) ? num1 : num2;
while (true) {
if (lcm % num1 == 0 && lcm % num2 == 0) {
cout << "Least Common Multiple: " << lcm << endl;
break;
}
lcm++;
}
return 0;
}#include <iostream>
using namespace std;
int main() {
int num1, num2;
cout << "Enter first number: ";
cin >> num1;
cout << "Enter second number: ";
cin >> num2;
int gcd = 1;
for (int i = 1; i <= num1 && i <= num2; i++) {
if (num1 % i == 0 && num2 % i == 0) {
gcd = i;
}
}
cout << "Greatest Common Divisor: " << gcd << endl;
return 0;
}Repost from نصائح و استشارات برمجية
●هتلاقي عند اسماء المواقع دي مسائل تقدر ان شاء الله تحلها ⬇️💚:
• Codeforces
• LeetCode
• HackerRank
• TopCoder
• AtCoder
• HackerEarth
• Codewars
طيب انا حاليا خلصت basic of kotlin وماشي حاليا في ال OOP هل في مواقع بتقدم افكار ممكن نقدمها او أي طريقه عموما اتدرب بيها على الحاجات اللي بتعلمها ؟
Endi mavjud! Telegram Tadqiqoti 2025 — yilning asosiy insaytlari 
