es
Feedback

¡No caigas en manos de tramposos! Telemetrio encuentra y marca estos canales 👉 Si quieres ver la etiqueta, suscríbete

Learn C++

Learn C++

Ir al canal en Telegram

للإستفسار 👈 @e_sh204 💻 الى مبرمجين 🔴سوف يتم شرح لغات السي بلاس بلاس للمبتدئين حتى الاحتراف 🎥 برامج مجانية 🎁 مشاريع مجانيه 📚 كتب تصميم وبرمجة

Mostrar más
538
Suscriptores
Sin datos24 horas
Sin datos7 días
Sin datos30 días
Archivo de publicaciones
التحويل من النظام العشري إلى الثماني 👇👇👇 #include <iostream> #include <cmath> using namespace std; int main(){ int n, e,x=0 ,s=0; cin>>n; while( n!=0) { e=n%8; n/=8; cout<<e; } return 0; }
11 ene 2022, 14:35

برنامج لتحويل العدد من النظام العشري الي الثنائي 👇👇👇 #include <iostream> #include <cmath> using namespace std; int main(){ int n, e,x=0 ,s=0; cin>>n; while( n!=0) { e=n%2; n/=2; cout<<e; } return 0; } 💞💞💞💞💞 المخرجات 9 1001 [Program finished]
11 ene 2022, 14:35

تحويل من ثنائي الى ثماني 👇👇👇 #include <iostream> #include <cmath> using namespace std; int main(){ int n, e=0,x=1 ,s=0; cin>>n; while( n!=0) { e=n%10; s=e*x; x=x*2; n/=10; x++; } cout<<s; return 0; }
11 ene 2022, 14:35

برنامج لتحويل العدد من النظام ثنائي الي النظام العشري 👇👇👇 #include <iostream> #include <cmath> using namespace std; int main(){ int n, e,x=0 ,s=0; cin>>n; while( n!=0) { e=n%10; n/=10; s+=e*pow(2,x); x++; } cout<<"the decimal number is="<<s; return 0; } 🌸 🌸 🌸 🌸 المخرجات 111 7 [Program finished]
11 ene 2022, 11:59

برنامج لايجاد الاعداد المحصوره بين[١~٣٠] 👇👇👇 #include <iostream> using namespace std; int main(){ int n,z=1; cout<<"enter the number\n"; cin>>n; if(n>10 && n<30) while (n<30){ n+=z; cout<<n<<endl;} else cout<<"error"; return 0; } 🌸🌸🌸🌸 المخرجات enter the number 20 21 22 23 24 25 26 27 28 29 30 [Program finished]
11 ene 2022, 11:59

برنامج لايجاد مضروب اي عدد يدخله المستخدم 👏👏👏 #include <iostream> using namespace std; int main(){ int f=1,i=1,n; cout<<"enter the number\n"; cin>>n; while(i<=n){ f*=i; i++; cout<<"the factorial is="<<f; } return 0; } 🌱🌱🌱🌱🌱🌱 المخرجات 5 factorial is=120
11 ene 2022, 11:59

//برنامج لادخال عددين وايجاد القاسم المشترك الاكبر بينهما #include <iostream> using namespace std; int main(){ int f,s; cout<<"enter the first number\n"; cin>>f; cout<<"enter the second number\n"; cin>>s; while (f!=s){ if(f>s) f-=s; if(f<s) s-=f;} cout<<"the result="<<s; return 0; }
11 ene 2022, 11:58

//برنامج لاختيار العمليات الحسابيه #include <iostream> using namespace std; int main(){ int a,b,c; do { cout<<"1-add"<<endl; cout<<"2-sud"<<endl; cout<<"3-mut"<<endl; cout<<"4-dev"<<endl; cout<<"0-exit"<<endl; cout<<"please select opration\n"; cin>>c; switch ( c ){ case 1:cout<<"enter 2 number\n"; cin>>a>>b; cout<<a+b<<endl; break; case 2:cout<<"enter 2 number\n"; cin>>a>>b; cout<<a-b<<endl; break; case 3:cout<<"enter 2 number\n"; cin>>a>>b; cout<<a*b<<endl; break; case 4:cout<<"enter 2 number\n"; cin>>a>>b; cout<<a/b<<endl; break; case 0: cout<<"exit........by"; default: cout<<"wrong"; break; }} while(c !=0); cout<<c; return 0; }
11 ene 2022, 11:57

//برنامج يدخل المستخدم اي رقم ويقوم البرنامج بحساب عددمراتب الرقم و مجموع ارقامه #include <iostream> using namespace std; int main(){ int sumdigiat=0, enter, numberdigite=0; cin >> enter; while(enter != 0) { sumdigiat +=enter%10; enter= enter/10; numberdigite++; } cout <<sumdigiat<<"\n"<<numberdigite; return 0; }
11 ene 2022, 11:57

🖋 الدرس 2⃣ ⬅ ادوات التكرار 👈 الحلقة التكرارية (do-while): تختلف هذه الحلقة عن الحلقتين السابقتين في مكان كتابة الشرط، حيث يكتب الشرط هنا بعد العبارات المطلوب تكرارها. والصيغة التالية توضح الصورة العامة للحلقة do –while do { statement 1; statement 2; -- -- statement n; } while (condition) وأهم ملاحظة على الحلقة التكرارية do- while أنها تنفذ العبارات المطلوب تكراراها مرة واحدة على الأقل حتى ولو كان الشرط غير متحقق !!! وتفسير ذلك أن التحقق من الشرط يتم بعد التنفيذ وليس قبله كما في الحلقتين السابقتين. 🖋 انتهى ...
11 ene 2022, 11:54

..............📕درس اليوم📕............... ⬅ ادوات التكرار 👈 الحلقة (while loop ): في هذه الحلقة التكرارية نحتاج إلى الشرط فقط وطالما كان هذا الشرط متحققا استمرت الحلقة في التكرار. والصورة العامة للحلقة while موضحة كما بالشكل التالي: while (condition ) { statement 1; statement 2; -- -- statement n; } حيث الـ (condition): هو الشرط اللازم لأداء التكرار والعبارات بداخل أقواس البلوكات هى العبارات المراد تكرارها.. مثال (1): يوضح استخدام الحلقة while لطباعة الأعداد من 1 إلى 20. #include <iostream> using namespace std; int main() { int counter=1; while (counter <=20 ) { cout<< counter; counter++; } return 0; } من المثال السابق يمكننا استخلاص النتائج التالية عن الحلقة while 1. تخصيص القيمة الابتدائية للعداد تتم خارج الحلقة while. 2. زيادة العداد تتم داخل الحلقة while. ويكون ناتج البرنامج كالتالي:- 1234567891011121314151617181920 يتبع 👇 ....
11 ene 2022, 11:49

♦️اعلان هااام..♦️ نرجوا من جميع المشتركين في حاله تجربه اي كود من الاكواد الذي بنرسلهن ولم يتنفذ يبلغني في الخاص. لان يمكن نغلط في كتابه الكود فقط او الاستفسار عن اي درس . الخاص👈 @e_sh200
11 ene 2022, 09:28

حٌدِدِ๘ﮩ₰ﮩ₰ﮩ.❥أّلَمَخَرجِأّتُّ ِ 👨‍💻👇👇👩‍💻 #include <iostream> using namespace std; int main(){ int g=1,b=2; for(int r=1;r<=3;r++){ cout <<g<<" "; b=b+g; cout <<b<<" "; g=g+b; }} أّلمخََ๘ﮩ₰ﮩ₰ﮩ.❥رجِأّتُّ ِ 👍♥️👍 1 3 4 7 11 18 [Program finished]
11 ene 2022, 09:26

أّګتّبِ๘ﮩ₰ﮩ₰ﮩ.❥بِرنِأّمَجُِ ِ لطباعة 👍♥️👍 1 3 4 7 11 18 29 47 76 123 199 322 521 843 [Program finished] 👨‍💻👇👇👩‍💻 #include <iostream> using namespace std; int main (){ int x=3,y=1; for( int i=1;i<=7;i++) { cout<<y<<" "; y+=x; cout<<x<<" "; x+=y; } }
11 ene 2022, 09:25

أّګتّبِ๘ﮩ₰ﮩ₰ﮩ.❥بِرنِأّمَجُِ ِ لطباعة 👍♥️👍 1 3 6 8 11 13 [Program finished] 👨‍💻👇👇👩‍💻 #include <iostream> using namespace std; int main(){ int a=1; for(int g=1;g<=3;g++){ cout <<a<<" "; a+=2; cout <<a<<" "; a+=3; } }
11 ene 2022, 09:25

أّګتّبِ๘ﮩ₰ﮩ₰ﮩ.❥بِرنِأّمَجُِ ِ لطباعة الاعداد الاوليه م̷ـــِْن 1 الي 100 👇💕👇💕 #include <iostream> using namespace std; int main() { cout<<"2 is prime"<<endl; int num=1; while (num < 110){ int factors = 0; num++; if(num%2==0){ num++; } for(int i =1; i<=num; i+=2){ if (num%i==0){ factors++; } } if (factors == 2){ cout<<num<<" is prime"<<endl; } } return 0; أّلمخََ๘ﮩ₰ﮩ₰ﮩ.❥رجِأّتُّ ِ 👍👩‍💻👍👨‍💻 2 is prime 3 is prime 5 is prime 7 is prime 11 is prime 13 is prime 17 is prime 19 is prime 23 is prime 29 is prime 31 is prime 37 is prime 41 is prime 43 is prime 47 is prime 53 is prime 59 is prime 61 is prime 67 is prime 71 is prime 73 is prime 79 is prime 83 is prime 89 is prime 97 is prime 101 is prime 103 is prime 107 is prime 109 is prime [Program finished]
11 ene 2022, 09:18

حدد الشكل المخرج من البرنامج 👇 #include <iostream> #include <conio.h> using namespace std; int main(){ for(int i=1; i<10; i++){ cout<<endl; for(int j=10; j>0; j--) if(i<j){ cout<<" ";} else {cout<< j;} for(int m=2; m<10; m++) if(i<m) cout<<" "; else cout<< m; } getch(); return 0; } 💞💞💞💞💞 المخرجات 1 212 32123 4321234 543212345 65432123456 7654321234567 876543212345678 98765432123456789 [Program finished] الشكل 👆المخرج من compiler بيكون شك هرم هون ملخبط شوي
11 ene 2022, 09:17

برنامج لايجاد الاعداد المحصوره بين[١~٣٠] 👇👇👇 #include <iostream> using namespace std; int main(){ int n,z=1; cout<<"enter the number\n"; cin>>n; if(n>10 && n<30) while (n<30){ n+=z; cout<<n<<endl;} else cout<<"error"; return 0; } 🌸🌸🌸🌸 المخرجات enter the number 20 21 22 23 24 25 26 27 28 29 30 [Program finished]
11 ene 2022, 09:16

برنامج لطباع الشكل * * * (program finish) 👇👇 #include <iostream> using namespace std; int main(){ int n=3; for(int i=0; i<n; i++){ cout<<endl; for(int j=0; j<n; j++) if(i+j==n-1) cout<<"*"; else cout<<" "; } return 0; }
11 ene 2022, 09:16

ارسم الشكل المخرج👇 #include <iostream> #include <conio.h> using namespace std; int main(){ for(int i=1; i<=5; i++){ cout<<endl; for(int j=5; j>=i; j--) cout<<"*"; } getch(); return 0; } 🌸 🌸 🌸 🌸 🌸 الشكل المخرج * **** * *
11 ene 2022, 09:16