6614 PDF
6614 PDF
ﻫﺬا اﻟﻜﺘﺎب
ﻣﻘﺪم ﻟﻜﻢ ﻣﻦ ﳏﺐ ﻣﻮﻗﻊ
ﻛﺘﺐ
ﻋﻤﺮ أﲪﺪ ﳏﻤﺪ اﻟﱰﯾﻜﻲ
اﳉﻤﻬﻮرﯾﺔ اﻟﯿﻤﻨﯿﺔ
إب ﻣﺪﯾﺮﯾﺔ ﺟﺒﻠﺔ/م
وﺷﻜﺮا
/* *
** /* 1
*** 212
**** 32123
*/ 4321234
#include<iostream.h> ﺑﺎﻟﻌﺪد
#include<conio.h> */
main() #include <iostream.h>
{ #include <conio.h>
clrscr(); main ()
int s=0,d=0; {
for (int i=1; i<=10; i++) clrscr();
getch();
}
// اﻟﺘﺎﻟﯿﺔ اﳌﺘﺴﻠﺴﻠﺔ ﺷﻜﻞ0 1 1 2 3 /* 111
5 8 13 21 34 117
#include <iostream.h> 171
#include <conio.h> 177
711
void main () 717
{ clrscr(); 771
int f1=0,i,f2=1,s; 777
cout <<f1<<" "<<f2; */
for ( i=1 ; i<=8; i++ ) #include<iostream.h>
{s=f1+f2; main()
cout <<" "<<s ; {
f1=f2; int i,k,j;
f2=s; for(i=1;i<=7;i+=6)
} for(k=1;k<=7;k+=6)
getch (); for(j=1;j<=7;j+=6)
} cout<<i<<k<<j<<endl;
}
for(i=x;i>=1;i--)
}}
/*54321 /* 12345
54321 123
54321 1
*ﺑﺎﻟﻌﺪد/ *ﺑﺎﻟﻌﺪد/
#include<iostream.h> #include<iostream.h>
#include<conio.h> #include<conio.h>
main() #include<math.h>
{ int x,a,i,j;
int i,n,b; main()
cin>>n; {clrscr();
for(i=n*n;i>=1;i--){b=i%n; cin>> x;
if(b==0)cout<<"\n"<<n; cout<<"\n";
else cout<<b;} for(i=1;i<=x;i++)
getch(); { for(a=1;a<=i-
} 1;a++)
{cout<< " ";}
for(j=1;j<=2*(x-
//واﻟﻜﻠﻤﺎت اﳊﺮوف ﻋﺪد ﳛﺴﺐ ﺑﺮﻧﺎﻣﺞ //ﺗﺸﻔﲑ ﻋﻠﻰ ﯾﻌﻤﻞ ﺑﺮﻧﺎﻣﺞ اﻛﺘﺐ
ﻓﻘﺮة ﰲ واﳉﻤﻞ اﻟﺸﻔﺮة ﻓﻚ واﻋﺎدة اﻟﻜﻠﻤﺔ
#include<iostream.h> #include<iostream.h>
#include<stdio.h> #include <string.h>
#include<string.h> #include <conio.h>
char s[256]; main()
int i,k,x=0,g; {
void main(){ clrscr();
cout<<" Enter string:"; char a;
gets(s); cout<<"do you want incoding
k=1; enter n else entr f";
for(i=0;i<strlen(s);i++) cin>>a;
{ if(a=='n')
switch(s[i]){ {
char x[100],x1[100];
case ' ': k++; int n,y[100],n1=0;
break; cout<<"enter word";
case '.': x++; cin>>x;
break; n=strlen(x);
cout<<"\n"<<D<<"/"<<m<<"/"<
<y<<" is ";
switch(c%7)
{
case 0:
cout<<" Frs";
break;
case 1:
cout <<" Saturday"
;
break;
case 2:
cout <<" Sunday";
break;
case 3:
cout <<" Monday";
break;
case 4:
cout<<" Tuesday";
break;
case 5:
cout <<"
Wednesday" ;
break;
case 6:
cout <<"
//وﻋﺪد ﻣﺎدة ﻛﻞ وﺗﻘﺪﯾﺮ اﻟﻄﺎﻟﺐ ﻣﻌﺪل //ﺟﯿﺪ ﳑﺘﺎز ﻃﺎﻟﺐ ﻣﻌﺪل ﺗﻘﺪﯾﺮ
ﺗﻘﺪﯾﺮ ﻛﻞ ﰲ اﳌﻮاد ﺿﻌﯿﻒ ﻣﻘﺒﻮل ﺟﯿﺪً ﺟﺪا
#include<iostream.h> #include<iostream.h>
main() main()
{ int A=0,b=0,c=0,e=0,f=0; {
float x,n,s=0,a; char name[20];
char y[10],z[10]; int avg,a;
cout<<"input name's tha student cout<<"input studnt name";
:"; cin>>name;
s=s+n; //ﻣﻌﺪل
} #include<iostream.h>
cout<<" \nsumetion the subject #include<conio.h>
"<<y<<" = "<<s; #include<math.h>
a=s/x; int d=0,z=0,c=0,m=0,w=0;
int avg(int n)
cout<<"\nthe avreg "<< y<<" = {
"<<a<<" %"; switch(n)
{
(a>=90)?cout<<"\tExelant":(a>=80) case 10: d++;
? break;
cout<<"\tVerygood":(a>=65)?cout<< case 9: d++;
"\tGood":(a>=50)? break;
cout<<"\tPassed":cout<<"\tFailed" case 8: z++;
; break;
cout<<"\nnumber the subject case 7: c++;
Exlant ="<<A <<"\nnumber the break;
subject very good="<<b; case 6: m++;
cout<<"\nnumber the subject break;
}
cout<<"sum is\t"<<x<<"\n";
}
for(z=0;z<e;z++)
cout<<odd[z]<<" ";
getch(); }
//اﱃ اﻟﻮاﺣﺪ ﻣﻦ اﻻوﻟﯿﺔ اﻻﻋﺪاد ﯾﺴﺮد //ﻫﺠﺎء اﻻﻋﺪاد ﻃﺒﺎﻋﺔ
اﺧﺘﯿﺎرة ﯾﺘﻢ ﻋﺪد #include<iostream.h>
#include <iostream.h> #include<conio.h>
#include <conio.h> #include<math.h>
int num(int z)
void main () {
{ clrscr(); switch(z){
int y,x,i,j; case 1: cout<<" ;"واﺣﺪ
cout <<"enter the numbere=" ; break;
cin >> x; case 2: cout<<";"اﺛﻨﲔ
cout <<" the numbere is prima break;
" ; case 3: cout<<";"ﺛﻼﺛﺔ
cout << endl; break;
for ( i=2 ; i<=(x); i++ ) case 4: cout<<";"ارﺑﻌﺔ
{ y=0; break;
for ( j=2 ; j<=(i-1); j++ ) case 5: cout<<";"ﲬﺴﻪ
{ break;
if(i%j==0) case 6: cout<<" ;"ﺳﺘﺔ
y=1;} break;
case 7: cout<<";"ﺳﺒﻐﺔ
if (y==0) break;
cout << i << endl; case 8: cout<<";"ﲦﺎﻧﯿﺔ
} break;
//ﰲ ﯾﻘﺎﺑﻠﺔ ﲟﺎ ﲟﺠﻤﻮﻋﺔ رﻗﻢ ﻛﻞ ﲨﻊ // ﻛﻠﻤﺔ ﯾﻄﺒﻊyesﻧﺎﺗﺞ ﻛﺎن اذا
ﻤﻮﻋﺔاﻻول ﻣﻊ اﻻول اﻟﺜﺎﻧﯿﺔ ا ﻛﻠﻤﺔ ﻓﯿﻄﺒﻊ واﻻ اﻟﻌﺪدزوﺟﻲ ﲨﻊ
اﱁ اﻟﺜﺎﻧﻲ ﻣﻊ واﻟﺜﺎﻧﻲ no
#include<iostream.h> #include<iostream.h>
#include<conio.h> main()
int {
x,a,i,j,v,m1[10],m2[10],sum[10]; int n,y,z;
main() cin>>n>>y;
{clrscr(); z=n+y;
if(z%2==0)
cin>> x; cout<<"yes";
cout<<"\n"; else
for(i=0;i<x;i++) cout<<"no";
cin>>m1[i];
cout<<"\n\n"; }
for(a=0;a<x;a++)
cin>>m2[a];
cout<<"\n\n";
for(j=0;j<x;j++)
sum[j]=m1[j]+m2[j];
cout<<"sum =";
for(v=0;v<x;v++)
cout<<sum[v]<<" ";
getch();
}
//ﻫﺠﺎء اﻻﺻﻐﺮ اﻟﻌﺪد ﯾﻄﺒﻊ //اﻻس داﻟﺔ
#include<iostream.h> #include<iostream.h>
}
void sumelementarray(int
a[],int n){
long sum=0;
for(int i=0;i<n;i++){
sum=sum+a[i];}
//ﻛﻞ ﻃﺒﺎﻋﺔ ﻋﻠﻰ ﯾﻌﻤﻞ ﺑﺮﻧﺎﻣﺞ اﻛﺘﺐ cout<<"\n sumation every
ﻛﻞ وود ﻋﺪد وﻛﺒﺎﻋﺔ ﻣﺼﻔﻮﻓﺔ ﰲ ﻋﻨﺼﺮ element in array = "<<sum;
ﻓﯿﻬﺎ ﻋﻨﺼﺮ }
void search(int a[],int
#include<stdio.h> n){
#include<iostream.h> int b=0,s;
#include<conio.h> cout<<"\n input the number
main() yuor searched:";
{ cin>>s;
clrscr(); for(int i=0;i<=n;i++)
int if(s==a[i]){
a[20],x,n,z,i,j,k1[20],k=0,y=0,b[ b=1;
20],m=0; break;}
cout<<"enter long if(b==1)
matrex"; cout<<"\nThe number found
cin>>n; in array";
for(i=1; i<=n;i++) else
{ cout<<"\nThe number not
cout<<"enter found in array";
a["<<i<<"]="; }
#include<stdio.h>
#include<iostream.h> #include<stdio.h>
#include<conio.h>
main() #include<iostream.h>
{
clrscr(); #include<conio.h>
int main()
a[20],x,index,n,i,j,k; {