قناص الهاكرز المـديـر العـــام
عدد الرسائل : 361 العمر : 31 السكن : في القلب العمل/او/شغلك : مبرمج حاسبات/كليه العلوم/طاب في علوم الحاسبات المزاج : متقلب الاوسمة : اعلام : تاريخ التسجيل : 01/08/2007
| موضوع: مجموعة من Sheet كبيرة لبرامج محلولة الجمعة فبراير 24, 2012 10:07 pm | |
|
#include int chang(char x,char y) { char s,z,temp; cout<<"the charactors before chang:"<temp=x; x=y; y=temp; cout<<"the charactors after chang:"<} int succ(char x) { char m,n; m=x-1; n=x+1; cout<} main() { char a,b; cin>>a>>b; chang(a,b); succ(a); }
@@@@@@@@@@@@@@@@@@@@@@@
#include #include float x,i,n,m,sum; int fun(int a) { for(i=1;i<=a;i++) { m=pow(a,i); n=m/a; sum+=n; } return(sum); } main() { cout<<"enter the integer number:"; cin>>x; fun(x); cout<}
@@@@@@@@@@@@@@@@
#include ch (char x) { int sum; sum=0; while(x!='$') { sum=sum+1; cin>>x; } cout<<"the number of charector="< } main() { cout<<"enter the line of charactor ending with $: "; char a; ch(a); }
@@@@@@@@@@@@@
#include int mod(int a,int b) { int i,c; i=0; while (a>=b &&a>0) { c=a-b; a=c; i++; } return(i); } main() { int z,x,y; cout<<"enter two integer number:"<cin>>x>>y; z=mod(x,y); cout<<"the reult="<}
@@@@@@@@@@@@@@@@@@
#include int i; num(int a) { int j=0,o=0,e; float av; e=0; for(i=0;i<4;i++) { if(a%2==0) e+=a; else { o+=a; j++; } } av=o/j; cout<<"the sum of evens: "<cout<<"\nthe avarge of odds: "<} main() { int k,l,x; cout<<"enter the line lenght: "; for(i=0;i<4;i++) cin>>x; num(x);
}
@@@@@@@@@@@@@@@@@@
#include ch(char x) { double sum,i; sum=0; i=0; char n; cout<<"enter the small characters :"; while(x!='$') { sum=sum+1; cin>>x; n=x-32; cout<i++; } cout<@@@@@@@@@@@@@@
#include char conv(char a) { char n; n=a-32; return(n); } main() { int i=0,k; int sum=0; char x,c; cout<<"enter the small characters end with $ :"<while(x!='$') { sum+=1; cin>>x; c=conv(x); cout<i++; }
cout<@@@@@@@@@@@@@
#include int s(int x) { int i,sum,n; sum=0; cout<<"enter the lenght of string"; cin>>n; for(i=1;i<=n;i++) { cin>>x; if(x==12) { sum=sum+1; } } return(sum); }
main() { int a,z; z=s(a); cout<<"the number of digite 12="<
}
@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@
| |
|