مستـ1ــوى حاسوب
191 subscribers
381 photos
26 videos
273 files
49 links
هاذه القناه ليــست مقصوره فقط على هاذه الدفعه فقط بل لمن اراد الاستفاده حيث تعتبر مرجع لـ اي طالب وفائده لطلاب المقبلين لدراسه الجدد نحاول جمع كل المعلومات الخاصه بدراسه هنا

قنوات مفيــده ومتنوعه 👍👇

@I_T_X_M

2018

>>>>> Admin<<<<<<<

@Lonely_e ..♪
Download Telegram
//برنامج لإدخال الرقم السري ويستمر حتي دخول العدد الصحيح

#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;
}

مٌسِتْوَى اوَلُ ْعلُوَمٌ حُاسِوَبّ جْامٌْعُه ذَمٌارَ
@Beprogramming
//برنامج لطباعه العداد بين 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;
}


مٌسِتْوَى اوَلُ ْعلُوَمٌ حُاسِوَبّ جْامٌْعُه ذَمٌارَ
@Beprogramming
//برنامج يعد من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;

مٌسِتْوَى اوَلُ ْعلُوَمٌ حُاسِوَبّ جْامٌْعُه ذَمٌارَ
@Beprogramming
لادخال الfor في دوره لانهائيه نستخدم(;;)for

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

مٌسِتْوَى اوَلُ ْعلُوَمٌ حُاسِوَبّ جْامٌْعُه ذَمٌارَ
@Beprogramming
//برنامج يدخل المستخدم اي رقم ويقوم البرنامج بحساب عددمراتب الرقم و مجموع ارقامه

#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;
}

مٌسِتْوَى اوَلُ ْعلُوَمٌ حُاسِوَبّ جْامٌْعُه ذَمٌارَ
@Beprogramming
//برنامج لاختيار العمليات الحسابيه
#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;
}


مٌسِتْوَى اوَلُ ْعلُوَمٌ حُاسِوَبّ جْامٌْعُه ذَمٌارَ
@Beprogramming
//باستخدام الدواره اطبع
// 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;
}

مٌسِتْوَى اوَلُ ْعلُوَمٌ حُاسِوَبّ جْامٌْعُه ذَمٌارَ
@Beprogramming
//برنامج لطباعه حرف 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;
}

مٌسِتْوَى اوَلُ ْعلُوَمٌ حُاسِوَبّ جْامٌْعُه ذَمٌارَ
@Beprogramming
//طباعه المثلث

#include <iostream>

using namespace std;
int main(){
for(int j=0; j<=9; j++)
{
for(int i=0; i<=9; i++)
{
if(i==0 ||(j==i && j+i<10) || (i+j==9 && j>i))
cout<<" * ";
else
cout<<" ";
}
cout<<"\n";
}


return 0;
}

مٌسِتْوَى اوَلُ ْعلُوَمٌ حُاسِوَبّ جْامٌْعُه ذَمٌارَ
@Beprogramming
//برنامج لطباعه نقطه فقط

#include <iostream>
using namespace std;
int main()
{
for(int i=1;i<=5;i++){
for(int j=1;j<=5;j++){
if(i==j && i+j==6)
cout<<"*";
else cout<<" ";
}
cout<<endl;
}
return 0;


مٌسِتْوَى اوَلُ ْعلُوَمٌ حُاسِوَبّ جْامٌْعُه ذَمٌارَ
@Beprogramming
//طباعه المثلث من الناحيه الاخري


#include <iostream>

using namespace std;
int main(){
for(int j=0; j<=9; j++)
{
for(int i=0; i<=9; i++)
{
if(i==9 ||(j==i && j+i>8) || (i+j==9 && j<i))
cout<<" * ";
else
cout<<" ";
}
cout<<"\n";
}


return 0;
}

مٌسِتْوَى اوَلُ ْعلُوَمٌ حُاسِوَبّ جْامٌْعُه ذَمٌارَ
@Beprogramming
//طباعه مثلث بداخله نجوم

#include <iostream>

using namespace std;
int main(){
for(int j=0; j<=9; j++)
{
for(int i=0; i<=9; i++)
{
if(i==0 ||(j==i && j+i<10) || (i+j==9 && j>i)||(i+j==8&&j>i)||(i+j==7 && j>i)||(i+j==6&&j>i)||(i+j==5&& j>i)||(i+j==4&&j>i)||(i+j==3&&j>i))
cout<<" * ";
else
cout<<" ";
}
cout<<"\n";
}


return 0;
}


مٌسِتْوَى اوَلُ ْعلُوَمٌ حُاسِوَبّ جْامٌْعُه ذَمٌارَ
@Beprogramming
//برنامج لعمل اله حاسبه باستخدام switch
#include <iostream>
using namespace std;
int main(){
int num1,num2, result;
char option;
cout << "Enter the number 1 :" << endl;
cin>> num1;
cout << "Enter the option :" << endl;
cin>> option;
cout << "Enter the number 2 :" << endl;
cin>> num2;
switch(option){
case + :{
result = num1 + num2;
cout<<"the result is: "<<result;}
break;
case - :{
result = num1 - num2;
cout<<"the result is: "<<result;
}break;
case * :{
result = num1 * num2;
cout<<"the result is: "<<result;
}break;
case / :{
result = num1 / num2;
cout<<"the result is: "<<result; }break;
case % :{
result = num1% num2;
cout<<"the result is: "<<result;}break;
default:cout<<"erorr";}
return 0;
}

مٌسِتْوَى اوَلُ ْعلُوَمٌ حُاسِوَبّ جْامٌْعُه ذَمٌارَ
@Beprogramming
//برنامج لحل معادله من الدرجه الثانيه
#include <iostream>
#include <math>
using namespace std;
//this solves the equation a*x*x+b*x+c==0:
int main(){
float a,b,c;
cout<<"enter coefficients of quadratic equation:";
cin>>a >>b >>c ;
if(a==0{
cout<<"this is not quadratic a equation:a==0\n";
return 0;
}
cout<<"the equation is: <<a <<"x^2+"<<b <<"x+ "<<c <<"= 0\n"
double d, x1, x2;
d=b*b - 4*a*c;
if(d < 0){
cout<<"this equation has no real solutions:d<0\n";
return 0;
}
x1=(-b + sqrt(d)/(2*a);
x2=(-b - sqrt(d)/(2*a)
cout<<"the solutions are: "<< x1 <<" , "<<x2 <<endl;

return 0;
}

مٌسِتْوَى اوَلُ ْعلُوَمٌ حُاسِوَبّ جْامٌْعُه ذَمٌارَ
@Beprogramming
//لحساب اولويات العمليات الحسابيه

#include <iostream>

using namespace std;
int main(){
int n;
n=(2*4*1/2+3)+2*10*(2+2-1+(4+1*6-1));
cout<<n;


return 0;
}

مٌسِتْوَى اوَلُ ْعلُوَمٌ حُاسِوَبّ جْامٌْعُه ذَمٌارَ
@Beprogramming
//حدد المخرجات

#include <iostream>
#include <conio.h>
using namespace std;
int main(){
for(int n=2; n<=5; n++)
{
if(n==2 && n==3){
continue;
cout<<n <<" , ";}
else
{cout <<n ;}
}
cout<<"\n yes:";
getch();
}


مٌسِتْوَى اوَلُ ْعلُوَمٌ حُاسِوَبّ جْامٌْعُه ذَمٌارَ
@Beprogramming
المخرجات هي
2345
yes:
المخرجات هي
45
yes:
//حدد المخرجات

#include <iostream>
#include <conio.h>
using namespace std;
int main(){
for(int n=2; n<=5; n++)
{
if(n==2 || n==3){
continue;
cout<<n <<" , ";}
else
{cout <<n ;}
}
cout<<"\n yes:";
getch();
}

مٌسِتْوَى اوَلُ ْعلُوَمٌ حُاسِوَبّ جْامٌْعُه ذَمٌارَ
@Beprogramming
المخرجات هي
ok!
//حدد المخرجات
#include <iostream>
#include <conio.h>
using namespace std;
int main(){
for(int n=4; n>0; n--)
{
if(n==2 || n==3){
continue;
cout<<n <<" , ";}
}
cout<<"\n ok!:";
getch();
}

مٌسِتْوَى اوَلُ ْعلُوَمٌ حُاسِوَبّ جْامٌْعُه ذَمٌارَ
@Beprogramming