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

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

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

@includeCCPLUSPLUS

نمایش بیشتر
کشور مشخص نشده استدسته بندی مشخص نشده است
1 087
مشترکین
اطلاعاتی وجود ندارد24 ساعت
اطلاعاتی وجود ندارد7 روز
اطلاعاتی وجود ندارد30 روز
آرشیو پست ها
آ๘ﮩ₰ﮩ₰ﮩ.❥ُ ِ ...: //حدد المخرجات #include <iostream> using namespace std; int main(){ int w=0, x, y; cin>>x>>y; for(int i=1; i<=y; i++) w+=x; cout<<w; return 0; }

//اكتب برنامج يطلب من المستخدم ادخال رقمين ثم ادخال العملية(+او -او / او%) وطباعه ناتج العمليه #include <iostream> using namespace std; int main(){ int a,b; char op; cout<< "please enter the first number\n"; cin>>a; cout<<"please enter the operation\n"; cin>>op; cout<<"please enter the second number\n"; cin>>b; switch(op){ case + : cout<<a<<"+"<<b<<"="<<a+b; break; case - : cout<<a<<"-"<<b<<"="<<a-b; break; case / : cout<<a<<"/"<<b<<"="<<a/b; break; case % : cout<<a<<"%"<<b<<"="<<a%b; break; } return 0; }

آ๘ﮩ₰ﮩ₰ﮩ.❥ُ ِ ...: برنامج لطباعه حرفي 😊 E #include<iostream> using namespace std; int main () { int i , b; for(i=1; i<=11; i++) { for(b=1; b<=10; b++) { if(i==1 || b==1 || i==6 || i==11) cout<<"*"; else cout<<" "; } cout<<endl; } }

//برنامج يقوم بقراءة عدد الثواني (عدد صحيح) ومن ثم يطبع عدد الساعات وعدد الدقائق وعدد الثواني مثل:ادخل 3750 فالناتج كالتالي 30:2:1 #include <iostream> using namespace std; int main(){ int n, hour, minute, second; cout <<"please enter the second\n"; cin>>n; hour=n/3600; minute=(n%3600)/60; second=(n%3600)%60; cout<<hour<<":"<<minute<<":"<<second<<endl; return 0; }

//اكتب برنامج يطلب إدخال وزن المستخدم بالكيلو وطباعه الناتج بالباوند. حيث 1k=2.2pound #include <iostream> using namespace std; int main(){ float n; float const kg=2.2; cout<<"please enter your weight with kilo gram\n"; cin>>n; cout<<"your weight is"<<n*kg <<"pound"<<endl; return 0; }

المخرجات 121

//حدد المخرجات آ๘ﮩ₰ﮩ₰ﮩ.❥ُ ِ ...: #include <iostream> using namespace std; int main () { int a = 99; switch (a) { case 1: a += 5; case 2: a += 23; case 99: a += 12; case 100: a += 10; } cout << a; return 0; }

آ๘ﮩ₰ﮩ₰ﮩ.❥ُ ِ ...: المخرجات 6 4 2 00000

آ๘ﮩ₰ﮩ₰ﮩ.❥ُ ِ ...: //حدد المخرجات #include <iostream> #include <conio.h> using namespace std; int main(){ int i,j; for(i=3; i>=0; i--) {for(j=0; j<5; j++){ if(i==0 || j==2) cout<<i*j; else cout<<" "; } cout<<endl; } getch(); return 0; }

آ๘ﮩ₰ﮩ₰ﮩ.❥ُ ِ ...: المخرجات 1 1 2 3 4 9 8 8

آ๘ﮩ₰ﮩ₰ﮩ.❥ُ ِ ...: //حدد المخرجات #include <iostream> #include <conio.h> #include <math.h> using namespace std; int main(){ int i; for(i=0; i<5; i++){ i*10; if(i<3) cout<<pow(2,i)<<"\t"<<pow(3,i)<<endl; else cout<<sqrt(pow(2,6))<<"\t"; } getch(); return 0; }

آ๘ﮩ₰ﮩ₰ﮩ.❥ُ ِ ...: المخرجات اذا ادخل المستخدم رقم موجب مثل. x=2 40 اذا ادخل المستخدم رقم سالب مثل x=-2 33 اذا ادخل المستخدم رقم صفر مثل x=0 114

آ๘ﮩ₰ﮩ₰ﮩ.❥ُ ِ ...: //حدد المخرجات #include <iostream> #include <conio.h> using namespace std; int main(){ int x,w=2 , a=2; cout<<"Enter the x: "; cin>>x; if(x > 0){ w+=2*a*a; x=3*w;} else if(x < 0){ w=3*(a)+5; x=2*w;} else if(x ==0){ w=5*a*a*a-2; x+=2*w; } cout<<w+x; getch(); return 0; }

المخرجات ♡♡♡♡♡ ♡♡♡♡♡ ♡♡♡♡♡ ♡♡♡♡♡ ♡♡♡♡♡

//حدد المخرجات #include <iostream> #include <math.h> using namespace std; int main(){ for(int i=0; i<5; i++){ for(int j=0; j<5; j++){ if(i*i==2 || j*j==2) cout<<i*j; else cout<<" ♡ "; } cout<<endl; } return 0; }

المخرجات 99a b c d e f g h i j k l m n o p q r s t u v w x y z

//حدد المخرجات #include <iostream> #include <conio.h> using namespace std; int main(){ char w= a ; int d=2; d=d+w; cout<<d; while(w<= z ){ cout<<w<<endl; w++; } getch(); return 0; }

الخطاء يكون باستبدال d++ ب w++

//حدد الخطأ المنطقي #include <iostream> #include <conio.h> using namespace std; int main(){ char w= a ; int d=2; d=d+w; cout<<d; while(w<= z ){ cout<<w<<endl; d++; } getch(); return 0; }

المخرجات 201531