تعلم البرمجة بلغة ++C
前往频道在 Telegram
💻 الى كل المبرمجين 🔴سوف تجد شرح لغة السي بلاس بلاس للمبتدئين حتى الاحتراف 📺فيدوهات شرح عديدة 🎥 برامج مجانية 🎁 مشاريع مجانيه 📚 كتب تصميم وبرمجة 📚 مراجع واسئلة محلولة 💻برامج واكواد كثيرة كل ذلك في قناتي 👇 https://t.me/LearnCPlus_Plus
显示更多2 315
订阅者
-224 小时
-67 天
-2630 天
帖子存档
"وَلَمَّا بَلَغَ أَشُدَّهُ آتَيْنَاهُ حُكْمًا وَعِلْمًا"
بعض العطايا يجب أن تتأخر
لأنها لو أتت باكراً لربما لم نكن لنحافظ عليها
الله دوماً يختار لنا التوقيت الأمثل✨❤️
#include <iostream>
using namespace std;
int main (){
int a[5] ;
int n ,h=0;
cout <<"please enter item array"<<endl;
for (int i =0; i <=4 ; i ++)
cin >> a [i];
cout <<"please enter number searching"<<endl;
cin >>n ; cout<<"____"<<endl;
for (int i =0 ; i <=4; ++i)
if (a [i]== n){
cout <<a[i]<<" ";}
cout <<endl <<"the order for number searching"<<endl;
for (int i =0 ; i <=4; ++i)
if (a [i]== n){
cout <<"a["<<i<<"]"<<" ";
h+=1;}
cout <<endl;
if (h==0)
cout <<"not found";
else
cout <<"found"<<" "<<h<<" "<<"number";
return 0;}
//برنامج يقوم بطباعة الاعداد المكررة في المصفوفة
Nanotechnology_For_Dummies_by_Earl_Boysen,_Nancy_C_Muir,_Desiree.pdf17.43 MB
#include <iostream>
using namespace std;
int main()
{
int n,first,last,sum;
cout << "\n\n Find the sum of first and last digit of a number:\n";
cout << "------------------------------------------------------\n";
cout << " Input any number: ";
cin >> n;
first = n;
last=n % 10;
for(first=n;first>=10;first=first/10);
cout<<" The first digit of "<<n<<" is: "<<first<<endl;
cout<<" The last digit of "<<n<<" is: "<<last<<endl;
cout<<" The sum of first and last digit of "<<n<<" is: "<<first+last<<endl;
}
//دالة تستقبل عدد صحيح ثم تطبع مجموع الخانة الاولى والخانة الاخيرة للعدد (مثلاً إذاكان الرقم 7658 الناتج 7+8 = 15 )؟
现已上线!2025 年 Telegram 研究 — 年度关键洞察 
