ar
Feedback
تعلم البرمجة بلغة<++C> من البداية

تعلم البرمجة بلغة<++C> من البداية

الذهاب إلى القناة على Telegram

@includeCCPLUSPLUS

إظهار المزيد
لم يتم تحديد البلدالفئة غير محددة
1 087
المشتركون
لا توجد بيانات24 ساعات
لا توجد بيانات7 أيام
لا توجد بيانات30 أيام
أرشيف المشاركات
//برنامج لطباعه حرف W #include <iostream> using namespace std; int main(){ for(int j=0; j<=9; j++) { for(int i=0; i<=9; i++) { if(i==0|| i==9 ||( j+i==9&& j>i )|| (j==i &&i+j>10)) cout<<" * "; else cout<<" "; } cout<<"\n"; } return 0; }

//باستخدام الدواره اطبع // 1 // 3 2 // 5 4 3 //7 6 5 4 #include <iostream> using namespace std; int main(){ int n; for(int i=1; i<=4; i++){ cout<<endl; for(int j=0; j<=3; j++) if(j<i) cout<<i+j<<" "; else cout<<" ";} return 0; }

//برنامج لاختيار العمليات الحسابيه #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; }

//برنامج يدخل المستخدم اي رقم ويقوم البرنامج بحساب عددمراتب الرقم و مجموع ارقامه #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; }

لادخال الfor في دوره لانهائيه نستخدم(;;)for لادخال الwhile في دوره لانهائيه نستخدم(1)whileفقط

//برنامج يعد من0الي14 باستخدام goto #include <iostream> using namespace std; int main(){ int i=0; mpointn: cout<<i<<"\t"; i=i+1; if(i !=15) goto mpointn; return 0;

//برنامج لطباعه العداد بين 1-200 //واهمال العدد75 #include <iostream> using namespace std; int main(){ int i; for(i=1; i<200 ; i++) {if(i==75) continue; cout <<i <<"\t";} cout<<"\nis finished print to 200 execpt 75 is not print"; return 0; }

//برنامج لإدخال الرقم السري ويستمر حتي دخول العدد الصحيح #include <iostream> using namespace std; int main(){ int password; for(;; ){ cout <<"enter password \n"; cin>>password; if(password ==1234) {cout <<"password is correct "; break; } else cout<<"password is error try again\n";} return 0; }

برنامج لطباعه * * * * * #include <iostream> using namespace std; int main(){ int star, empty; for(star=0; star<4; star++){ for(empty=0 ;empty<star; empty++) cout <<" "; cout <<"*\n";} return 0; }

//برنامج لطباعه //1 //12 //123 //1234 //12345 #include <iostream> using namespace std; int main(){ int i , j; for(i=2; i <7; i++){ for(j=1; j<i; j++) cout <<j; cout <<"\n";} return 0; }

//برنامج لطباعه جدول الضرب من 1الي10 #include <iostream> using namespace std; int main(){ int i, j; for(i=1; i <=10 ;i++){ cout <<"Multiple tabel for ("<<i <<").\n..............\n"; for(j=1; j <=10; j++) cout <<j<<" * " << i <<"="<<i*j <<"\n"; } cout <<"\n"; return 0; }

//برنامج لطباعه التسلسليه التاليه (1234567654321) #include <iostream> using namespace std; int main(){ int i , j; for(i=1; i<7; i++) cout <<i; for(j=i; j>0; j--) cout << j ; return 0; }

//برنامج لايجاد مفكوك الاعداد #include <iostream> using namespace std; int main(){ int i , n; int fact=1; cin >>n; for(i=1; i <=n; i++) fact=fact*i; cout<< fact<<endl; return 0; }

//لمعرفة هل العدد المدخل عدداولي ام لا #include <iostream> using namespace std; int main(){ int i, n; cin>>n; for(i=2; i <n; i++) if(n%i==0) n=1; if(n==1) cout<<"no prime\n";} else cout <<"prime"; return 0; }

💕 ...: //تحويل الحرف الصغير الي كبير #include <iostream> using namespace std; int main(){ char x= a ; x=char(int( a )-32); cout<<x; return 0; }

💕 ...: //برنامج ندخل الحرف او الرمز ويعطي الاسكي كود #include <iostream> #include <conio.h> using namespace std; int main(){ char S; S=getche (); cout<<"\nASCii="<<int (S); return 0; }

بسم الله الرحمن الرحيم هذه القناة تشمل تعلم التقنية لمواكبة عصرنا الحالي ان شاء الله تكون الاستفادة عامة للجميع فنحن سنمشي ف هذه القناة خطوة بخطوة من الصفر إلى ان نصل إلى اعلى المراتب بأذن الله تعالى 👍

بسم الله الرحمن الرحيم وصل الله على سيدنا وحبيبنا محمد اللهم عجل فرجهم وسهل مخرجهم😁 💕 💕 ياليت صدرك برمجة (حــا❣سـب) إلي وانا (هكر) واسرق ملفات قِلًـ❣ـــبُكً وازرع ملف اسمة (احّ ـّـٌٍ❣ـٍّبّكَ) ياغـالي وكلمة مروره والله اني (احّ ـّـٌٍ❣ـٍبك) ‏