Está en la página 1de 52

lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla4440.47718\ 1.cpp - Dev-C++ 5.

11 X
File Edit Search V"iew Project Execute Tools AStyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debog 1.cpp


1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int s=0,i,n;
8 //clrscr();
9 printf ("Ingrese un nuner-o= ");
10 scanf ( "%el" ,&n);
11 for(i=l;i<=n;i++){
12 ,s=s·+i;
13 } '
14 printf("\n la swna de los %d primeros nwneros es: %d",n,s);
15
16
17 getch();
18 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla4440.42356\2.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debog 1.cpp 2.cpp 3.cpp 4.cpp 5.cpp 6.cpp 7.cpp 8.cpp 9.cpp
1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 float s=e,i,n,x=6,p;
8 //clrscr();
9
10 - for(i=1;i<=x;i++){
11 ,printf("Ingrese un numer0= ");
12 scanf ( "%f" ,&n);
13 printf("\n ");
14 !s=s+n;
15 }
16 p=s/x;
17 printf("\n el promedio de los numeros es: %f",p);
18
as
20 getch();
21 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla4440.47218\3.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debog 1 .cpp 2.cpp 3.cpp 4.cpp 5.cpp 6.cpp 7.cpp 8.cpp 9.cpp
1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int a,b,c,d,i,j,k,p...e,p1=e,pt=e;
8 //clrscr();
9 printf("\n Ingre-se un numero= ");
10 scanf ( "%el" ,&a);
11 printf( "\n Ingrese un numero= ");
12 scanf("%cl" ,&b);
13 printf("\n Ingrese un numero= ");
14 scanf("%cl",&c);
15 printf("\n Ingrese un numero= ");
16 scanf("%d",&d);
17 - for(i=l;i<=b;i++){
18 ,p=p+a;
as }
20 - for(j=l¡j<=c;j++){
21 ipl=pl+p;
22 }
for(k=l;k<=d;k++){
24 'pt=pt+pl;

25 }
26 printf("\n el producto de%<:!, %el, %el, %cl es %d",a,b,c,d,pt);
27
28

29 getch();
30 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla4440.4201\4.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debog 1.cpp 2.cpp 3.cpp 4.cpp 5.cpp 6.cpp 7.cpp 8.cpp 9.cpp
1 Finclude<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6

7 float s=0,c=0,p,x;
8 //clrscr();
9
10 - for( ; ; ){
11 ,printf("\n Ingrese un numero = ");
u scanf("%f",&x);
13 - if(x=200){
14 •p=s/c;
15 ;break;
16 }
17 - else{
18 �S:.S+Xj

¡
as ,C=C+l;
20 }
21
22 }
23 printf("\n el promedio de los numeros es: "f",p);
24
25
26 getch();
27 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla4440.4584\5.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debog 1.cpp 2.cpp 3.cpp 4.cpp 5.cpp 6.cpp 7.cpp 8.cpp 9.cpp
1 Finclude<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6

7 long int s...e,i,p=l;


8 //clrscr();
9
10 - for(i=200;i<=4000;i=i+2){
¡ •
11 �S;;S+l,;
1 ••
12 ¡p=p-1;

13 }
14 printf("\n la suma de los numeres es: %d",s);
15 printf("\n la producto de los numeras es: %d",p);
16
17 getch();
18 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla4440.4584\5.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debog 1.cpp 2.cpp 3.cpp 4.cpp 5.cpp 6.cpp 7.cpp 8.cpp 9.cpp
1 Finclude<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6

7 long int s...e,i,p=l;


8 //clrscr();
9
10 - for(i=200;i<=4000;i=i+2){
¡ •
11 �S;;S+l,;
1 ••
12 ¡p=p-1;

13 }
14 printf("\n la suma de los numeres es: %d",s);
15 printf("\n la producto de los numeras es: %d",p);
16
17 getch();
18 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla4440.5416\7.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help
D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debog 1.cpp 2.cpp 3.cpp 4.cpp 5.cpp 6.cpp 7.cpp 8.cpp 9.cpp
1 Finclude<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6

7 int a,b,c,i,j,p=0,pl=0;
8 //clrscr();
9 printf("\n Ingre-se un numero= ");
10 scanf ( "%el" ,&a);
11 printf( "\n Ingrese un numero= ");
12 scanf("%d" ,&b);
13 printf("\n Ingrese un numero= ");
14 scanf("%d" ,&e);
15 for(i=l;i<=b;i++){
16 'p=p+a;
17 }
18 - for(j=l;j<=c;j++){
as ;Pl=pl +p;
20 }
21
22 printf( "\n eJ. producto de %el, %d y %d es igual %d",a,b,c,p1);
23
24

25 getch();
26 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla4440.5829\8.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help
D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debog 1.cpp 2.cpp 3.cpp 4.cpp 5.cpp 6.cpp 7.cpp 8.cpp 9.cpp
l �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int n,ls,li,i,p=l;
8 //clrscr();
9 printf("\n Ingre�e un numero N= •);
10 scanf("%cl",&n);
11 printf("\n Ingrese un numero li= ");
12 scanf("%cl" ,&li);
13 printf("\n Ingrese un numero ls= ");
14 scanf("%cl",&ls);
15 for(i=li;i<=ls;i�){
16 ip=n*i;
17 ;printf("\n
¡
%d " %d = %d ",n,i,p);
18 ;p=l;
as }
20
21
22
23
24 getch();
25 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla4440.6144\9.cpp - Dev-C+ + 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debog 1.cpp 2.cpp 3.cpp 4.cpp 5.cpp 6.cpp 7.cpp 8.cpp 9.cpp
1 Finclude<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6

7 int numl,num2,div1=0,i,j,div2=0;
8 //clrscr();
9 printf("\n Ingre-se un numero= ");
10 scanf ("%el", s numl);
11 printf( "\n Ingrese un numero= ");
12 scanf("%cl" ,&num2);
13
14 for(i=l;i<=numl/2;i-++){
15 [if(numl % i== 0}{
16 ! divl =divl•i;
17 [ }
18 }
as
20 - for(j=l¡j<=num2/2;j+.){
(if(num2 % j=0){
22 ¡ =div2 =div2•j;
23 ¡}
24 }
25
26 - if(numl�=div2 && num2==divl}{
27 printf(" \n %cl y %d son amigos ",numl,num2);
28 }
29 - else{
30
31 printf(" \n %d y %d no son amigos ", numl, num2);
32 }
33
34 getch();
35 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla4440.13276\10.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debog 1.cpp 2.cpp 3.cpp 4.cpp 5.cpp 6.cpp 7.cpp 8.cpp 9.cpp 10.cpp 11.cpp 12.cpp 13.cpp 14.cpp 15.cpp 16.cpp 17.cpp 18.cpp 20.cpp
1 Finclude<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6

7 int n,cd=0,i;
8 //clrscr();
9 printf("\n Ingre-se un numero= ");
10 scanf ( "%el" ,&n);
11
u
for(i=l;i<•n;i++){
14 ¡if((n/i)*i== n){
15 i 'cd =cd+ l;
16 i}
17 }
18
as
20 - if(cd== 2){
21 príntf(" \n %d es primo ",n);
22 }
23 - else{
24
25 printf(" \n %d no es primo ",n);
26 }
27
28 getch();
29 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla4440.13439\ 11.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debog 1.cpp 2.cpp 3.cpp 4.cpp 5.cpp 6.cpp 7.cpp 8.cpp 9.cpp 10.cpp 11.cpp 12.cpp 13.cpp 14.cpp 15.cpp 16.cpp 17.cpp 18.cpp 20.cpp
1 �include<stdio.h>

2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int n,s=e,i,a;
8 //clrscr();
9 printf("\n Ingre-se un numero= ");
10 scanf ( "%el" ,&n);
11
u
for(i=l;i<•n-l;i++){
14 fa=nii;
15 [if(a,.=0){
16 i
17 ¡} ;S"S+i;

18 }
as
20 - if( s=« n){
21 printf (" \n %d es perfecto •, n);
22 }
23 - else{
24
25 printf (" \n %d no es perfecto "» n);
26 }
27
28 getch();
29 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla4440.13603\ 12.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debog 1.cpp 2.cpp 3.cpp 4.cpp 5.cpp 6.cpp 7.cpp 8.cpp 9.cpp 10.cpp 11.cpp 12.cpp 13.cpp 14.cpp 15.cpp 16.cpp 17.cpp 18.cpp 20.cpp
1 �include<stdio.h>

2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int cd=0,i,n,x;
8 //clrscr();
9 printf ("Ingrese un nuner-o= ");
10 scanf ( "%el" ,&n);
11 x=n;
U- while(x>0){
13 (cd=cd+l;
14 Íx:x/10;
15 } '
16 printf("\n el numero %d tiene %d digitos ",n,cd);
17
18
l:9 getch();
20 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla4440.13742\13.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debog 1.cpp 2.cpp 3.cpp 4.cpp 5.cpp 6.cpp 7.cpp 8.cpp 9.cpp 10.cpp 11.cpp 12.cpp 13.cpp 14.cpp 15.cpp 16.cpp 17.cpp 18.cpp 20.cpp
1 �include<stdio.h>

2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int dig, n, x;
8 //clrscr();
9 printf ("Ingrese un nuner-o= ");
10 scanf ( "%el" ,&n);
11 x:n;
while(x>0){
13 ¡digex-(x/10)•10;
14 if( dig % 3= 0){
15 ¡ printf("\n Xd , ",dig);
16 }
17 1x:x/10;
18 }
as
20
21
22 getch();
23 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla4440.13885\ 14.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debog 1.cpp 2.cpp 3.cpp 4.cpp 5.cpp 6.cpp 7.cpp 8.cpp 9.cpp 10.cpp 11.cpp 12.cpp 13.cpp 14.cpp 15.cpp 16.cpp 17.cpp 18.cpp 20.cpp
1 �include<stdio.h>

2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int dig,n,x,s=0;
8 //clrscr();
9 printf ("Ingrese un nuner-o= ");
10 scanf ( "%d" ,&n);
11 x=n;
U- while(x>0){
13 ¡dig=x-(x/10)•10;
14 s=s+dig;
15 '¡X=X/10;
16 }
17

18 printf("del numero %d la suma de sus digitos es igual a %d ",n,s);


as
20 getch();
21 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla4440.14081\ 1 S.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help
D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debog 1.cpp 2.cpp 3.cpp 4.cpp 5.cpp 6.cpp 7.cpp 8.cpp 9.cpp 10.cpp 11.cpp 12.cpp 13.cpp 14.cpp 15.cpp 16.cpp 17.cpp 18.cpp 20.cpp
1 Finclude<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6

7 int dig,n,x,s=0;
8 //clrscr();
9 printf ("Ingrese un nuner-o= ");
10 scanf ( "%el" ,&n);
11 x=n;
while(x>0){
13 ¡dig=x-(x/10)•10;
14 'if(digl2::0){
15
• d.
=s=s+ ig;

16 ! }
17 [
18 :x=x/10;
as }
20
21 printf("del numero %d la suma de sus digitos pares es igual a %d ",n,s);
22
23 getch();
24 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla4440.14357\16.cpp - Dev-C+ + 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debog 1.cpp 2.cpp 3.cpp 4.cpp 5.cpp 6.cpp 7.cpp 8.cpp 9.cpp 10.cpp 11.cpp 12.cpp 13.cpp 14.cpp 15.cpp 16.cpp 17.cpp 18.cpp 20.cpp
1 #include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5- {
6
7 int dig,n,x,cc=0,cp=0;
8 //clrscr();
9 printf("Ingrese un numero=");
10 scanf("%d" ,&n);
11 x=n;
12- while(x>0){
13 ¡dig=x-(x/10)•10;
14 - lif(dig%2==0){
15 i icp=cp+l;
16 }
17 - i else{
18 - '¡if(dig=0){
1 1
19 · [cc=cc+L;
20 ! }
21 }
22
23 i.x=x/10·,
24 }
25
26 printf("la cantidad de dígitos ceros es; %d \n la cantidad de dígitos pares es: %d ",cc,cp);
27
28 getch();
29 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla4440.14565\17.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debog 1.cpp 2.cpp 3.cpp 4.cpp 5.cpp 6.cpp 7.cpp 8.cpp 9.cpp 10.cpp 11.cpp 12.cpp 13.cpp 14.cpp 15.cpp 16.cpp 17.cpp 18.cpp 20.cpp
1 #include<stdio.h>
2 #include<conio.h�
3 #include<math.h>
4 int main()
5- {
6
7 int dig,n,x,nn=0;
8 //clrscr();
9 pri.ntf("Ingrese un numero=");
10 scanf("%d" ,&n);
11 x=n;
12- while(x>0){
13 !dig=x%10;
14 lnn=(nn*10)+dig;
15 .lx=x/10·,
16 i}
17 - :1if(nn==n){
'
18 ¡ ¡ printf ( "\n %d es capicua", n);
19 ¡ }
20 - else{
21 printf("\n %d no es capicua",n);
22 }
23
24
25
26
27 getch();
28 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla4440.14746\18.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debog 1.cpp 2.cpp 3.cpp 4.cpp 5.cpp 6.cpp 7.cpp 8.cpp 9.cpp 10.cpp 11.cpp 12.cpp 13.cpp 14.cpp 15.cpp 16.cpp 17.cpp 18.cpp 20.cpp
1 #include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5- {
6
7 int dig,n,x,m=9,pos,c=0,d;
8 //clrscr();
9 printf("Ingrese un numero con los digitos distintos=");
10 scanf("%d",&n);
11 x=n;
12 d=n%10;
13 m=d;
14 - while(x>0){
15 !dig=x%10;
16 ¡c=c+l;
17 - :1if(dig<=m){
.
18 · !m=dig;
19 lpos=c;
20 }
21 !x=x/10;
22 J
23 printf("el digito menor es %d \n y suposiciones %d ",m,pos);
24
25
26
27
28 getch();
29 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla4440.15257\20.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debog 1.cpp 2.cpp 3.cpp 4.cpp 5.cpp 6.cpp 7.cpp 8.cpp 9.cpp 10.cpp 11.cpp 12.cpp 13.cpp 14.cpp 15.cpp 16.cpp 17.cpp 18.cpp 20.cpp
1 #include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5- {
6
7 int dig,n,x,cd=0;
8 //clrscr();
9 printf("Ingrese un numero=");
10 scanf("%d" ,&n);
11 x=n;
12- while(x>0){
13 ¡dig=x%10;
14 - lif(dig%2==0){
15 i icd=cd+l;
16 i }
17 ¡
18 :x=x/10;
19 }
20
21 printf("\n del numero %d la cantidad de digitos pares son %d",n,cd);
22
23 getch();
24 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla6512.9664\21.cpp - Dev-C++ 5.11 X
File Edit Search V"iew Project Execute Tools AStyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 21.cpp 21.cpp 24.cpp 25.cpp 26.cpp 27.cpp 28.cpp 29.cpp 30.cpp 31.cpp 32.cpp 34.cpp 35.cpp 36.cpp 37.cpp 33.cpp 39.cpp 40.cpp
1 l;tinclude<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5- {
6
7 int dig,n,x,cp=0,sd=0,cm=0;
8 //clrscr();
9 printf("Ingrese un numero=");
10 scanf("%d" ,&n);
11 x=n;
12- while(x>0){
13 !dig=x%10;
14 l d=s�+dig;
15- ,
f ( d1g%2==0) {
16 i cp=cp+l;
17 ! }
18
19 - 'if(dig%3==0){
20 ¡cm=cm+l;
21
22
23 i'x=x/10·,
24 }
25
26 printf("\n del numero %d \n la cantidad de digitos pares son %d \n la cantidad de digitos multiplos de 3 son %d \n la suma de sus digitos son %d",n,cp,cm,sd)
27
28 getch();
29 }

< >
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla6512.40565\22.cpp - Dev-C+ + 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 21.cpp 22.cpp 24.cpp 25.cpp 26.cpp 27.cpp 28.cpp 29.cpp 30.cpp 31.cpp 32.cpp 34.cpp 35.cpp 36.cpp 37.cpp 33.cpp 39.cpp 40.cpp
1 lrinclude<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int ma irffl
5 - {
6
7 int dig,n,x,cm3=0,an5=0,cfll2=0;
8 //clrscr();
9 printf ("Ingrese un numero= ");
10 scanf ( "%el" ,&n);
11 x=n;
u- while(x>0){
13 ¡dig=xX10;
14 !
15 !if(dig12==0){
16 ! 'cm2=cm2+1;
17 ! }
18
as
20 -
!;if(digX3==0){
21 ! :cm3=cm3+1;
22 }
23
24 - if(digX5==0){
25 'cmS=cmS+l;
26 }
27
28
29 fx=x/10;
30 }
31
32 printf("\n del numero %d ",n);
33 printf("\n la cantidad de dígitos multiplos de 2 son %d",cm2);
34 printf(" \n la cantidad de dígitos multiplos de 3 son %d",cm3);
35 printf("\n la cantidad de dígitos multiplos de 5 son %d",cm5);
36 getch();
37 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla6512.40807\24.cpp - Dev-C+ + 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help
D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 21.cpp 21.cpp 24.cpp 25.cpp 26.cpp 27.cpp 28.cpp 29.cpp 30.cpp 31.cpp 32.cpp 34.cpp 35.cpp 36.cpp 37.cpp 33.cpp 39.cpp 40.cpp
1 #include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int dig,n,x,sf=0,f,i;
8 //clrscr();
9 printf("Ingrese un numero = ");
10 scanf (" %d" ,&n);
11 x-n,
u
13 - while(x>0){
14 ¡dig=xi10;
15 jf=l;
16 lx=x/10;
¡if(dig>0){
18 f
l:9 - f •for(i=l;i<=dig;i++){
20 ;f=f*i;
21 }

23
24
22
}
·i sf=sf•f;
••
25 ,

26 ¡}
27 printf("la sumatoria es %d ",sf);
28
29

30 getch();
31 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla6512.40973\25.cpp - Dev-C+ + 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 21.cpp 21.cpp 24.cpp 2S.cpp 26.cpp 27.cpp 28.cpp 29.cpp 30.cpp 31.cpp 32.cpp 34.cpp 3S.cpp 36.cpp 37.cpp 33.cpp 39.cpp 40.cpp
1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int n,x,aux=l,r,ac;
8 //clrscr();
9 printf(''Ingrese un numero = ");
10 scanf(" %d",&x);
11 ac=x%10;
12 x=x/10;
13 n:x;
14 - while(x>l0){
15
16 .x=x/10;
17 aux:aux*10;
18 }
19 n=n%aux;
20 r=(((ac*aux)+n)*10)+x;
21 printf(" \n el nuevo numero intercambiando extremos es %d ",r);
22
23
24 getch();
25 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla6512.41126\26.cpp - Dev-C+ + 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 21.cpp 21.cpp 24.cpp 25.cpp 26.cpp 27.cpp 28.cpp 29.cpp 30.cpp 31.cpp 32.cpp 34.cpp 35.cpp 36.cpp 37.cpp 33.cpp 39.cpp 40.cpp
1 #include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int n,i,j,f=1,sf=0;
8 //clrscr();
9 printf(''\n Ingrese un numero:");
10 scanf("%d",&n);
11
for(i=l;i<=n;i++){
13
14 - for(j=l;j<=i;j++){
15 sf=sf+f;
16 }
17 f=sf;
18 sf:0;
19 }
20 printf(''\n el factorial del numero mediante suma es %d",f);
21

22 getch();
23 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla6512.41394\27.cpp - Dev-C+ + 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 21.cpp 21.cpp 24.cpp 25.cpp 26.cpp 27.cpp 28.cpp 29.cpp 30.cpp 31.cpp 32.cpp 34.cpp 35.cpp 36.cpp 37.cpp 33.cpp 39.cpp 40.cpp
1 #include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int a,b,i,p=0;
8 //clrscr();
9 printf(''\n Ingrese un numero:");
10 scanf("%d",&a};
11 printf(''\n Ingrese un numero=");
12 scanf("%d",&b};
13
14 - for(i=l;i<=b;i++){
15 p=p+a;
16 }
17
18 printf("\n el producto de %d y %des= %d",a,b,p);
19
20
21 getch();
22 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla6512.41613\28.cpp - Dev-C+ + 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 21.cpp 21.cpp 24.cpp 25.cpp 26.cpp 27.cpp 28.cpp 29.cpp 30.cpp 31.cpp 32.cpp 34.cpp 35.cpp 36.cpp 37.cpp 33.cpp 39.cpp 40.cpp
1 #include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int a,b,c,i,j,p=0,pl=0;
8 //clrscr();
9 printf(''\n Ingrese un numero: 11);
10 scanf("%d",&a};
11 printf("\n Ingrese un numero= ");
12 scanf("%d",&b};
13 printf("\n Ingrese un numero= ");
14 scanf( ''%d" ,&e);
15 - for(i=l;i<=b;i++){
16 'p=p+a;
17 }
18 - for(j:l;j<=c;j++){
19 pl=pl+p;
20 }
21
22 printf("\n el producto de ( %d * %d} * %d es igual %d",a,b,c,pl);
23
24

25 getch();
26 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla6512.42261\31.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 21.cpp 21.cpp 24.cpp 25.cpp 26.cpp 27.cpp 28.cpp 29.cpp 30.cpp 31.cpp 32.cpp 34.cpp 35.cpp 36.cpp 37.cpp 33.cpp 39.cpp 40.cpp
1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int x,y,a;
8 //clrscr();
9 printf(''Ingrese x: .. ) ;
10 scanf("%d",&x);
11 printf(''Ingrese un y = ");
12 scanf( "%d" ,&y);

13 a:0;
14 - while(x+a!:y){
15 a=a+l;
16 }
17
18 printf("\n de X+A:Y el valor de a es: %d ",a);
19
20
21 getch();
22 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla6512.42439\32.cpp - Dev-C+ + 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 21.cpp 21.cpp 24.cpp 25.cpp 26.cpp 27.cpp 28.cpp 29.cpp 30.cpp 31.cpp 32.cpp 34.cpp 35.cpp 36.cpp 37.cpp 33.cpp 39.cpp 40.cpp

1 #include<stdio.h>
2 #include<conio.h>
3 int main()
4- {
5 int a,b,r,n,op;
6 int s:0,i;
7 int cd:0;
8 printf("Ingrese un numero:");
9 scanf("%d",&n);
10 printf(" ***********lista de opciones********* ");
11 printf(" \n l. verificar si un numero es par o impar");
12 printf(" \n 2. verificar si un numero es primo o no");
13 printf(" \n 3. verificar si un numero es perfecto o no");
14 printf(" \n \n elija una opcion: ");
15 scanf("%d",&op);
16
17 switch(op)
18 - {
19 case 1:
20- if(n91i2==0){
21 printf(" %des par",n);
22 }
23 - else{
24 , )·,
.printf(" %d es inpar "n
25 }
26 break;
27
28 case 2:
29
30 - 34
��

32
33
for{i=l;i<=n;i++){
i
f
(
(
n
/
i
)
*
i
=
=
n
)
{
l
c
d
:
c
d
+
l
;
}
}
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla6512.42627\34.cpp - Dev-C+ + 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 21.cpp 21.cpp 24.cpp 25.cpp 26.cpp 27.cpp 28.cpp 29.cpp 30.cpp 31.cpp 32.cpp 34.cpp 35.cpp 36.cpp 37.cpp 33.cpp 39.cpp 40.cpp
1 #include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int n,i;
8 //clrscr();
9 printf(''\n \n Ingrese un numero:");
10 scanf("%d",&n);
11
12 printf( "\n \n para n: %d la serie es =",n);
13 - for(i:0;i<=n-l;i++){
14 printf("%d,",i);
15 }
16
17
18
19
20 getch();
21 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla6512.42861\35.cpp - Dev-C+ + 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 21.cpp 21.cpp 24.cpp 25.cpp 26.cpp 27.cpp 28.cpp 29.cpp 30.cpp 31.cpp 32.cpp 34.cpp 35.cpp 36.cpp 37.cpp 33.cpp 39.cpp 40.cpp
1 #include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int n,i,x;
8 //clrscr();
9 printf(''\n \n Ingrese un numero:");
10 scanf("%d",&n);
11
12 printf( "\n \n para n: %d la serie es =",n);
13 - for(i:0;i<=n-l;i++){
14 x:pow(i,2);
15 printf("%d,",x);
16 }
17
18
19
20
21 getch();
22 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla6512.43050\36.cpp - Dev-C+ + 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 21.cpp 21.cpp 24.cpp 25.cpp 26.cpp 27.cpp 28.cpp 29.cpp 30.cpp 31.cpp 32.cpp 34.cpp 35.cpp 36.cpp 37.cpp 38.cpp 39.cpp 40.cpp
1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
s- {
6
7 int n,i,a=0;
8 //clrscr();
9 printf("\n \n Ingrese un numero=");
10 scanf("%d",&n);
11
12 printf("\n \n paran= %d la serie es =",n);
13 - for(i:0;i<=n-l;i++){
14 printf("%d,",a);
15 a=a+2;
16 }
17
18
19
20
21 getch();
22 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla6512.44257\37.cpp - Dev-C+ + 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 21.cpp 21.cpp 24.cpp 25.cpp 26.cpp 27.cpp 28.cpp 29.cpp 30.cpp 31.cpp 32.cpp 34.cpp 35.cpp 36.cpp 37.cpp 33.cpp 39.cpp 40.cpp
1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
s- {
6
7 int n,i,imp;
8 //clrscr();
9 printf("\n \n Ingrese un numero:");
10 scanf("%d",&n);
11
12 printf("\n \n paran: %d la serie es =",n);
13 - for(i:l;i<:n;i++){
14 imp:(i*2)-l;
15 printf("%d,",imp};
16
17 }
18
19
20
21
22 getch();
23 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla6512.44458\38.cpp - Dev-C+ + 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 21.cpp 21.cpp 24.cpp 25.cpp 26.cpp 27.cpp 28.cpp 29.cpp 30.cpp 31.cpp 32.cpp 34.cpp 35.cpp 36.cpp 37.cpp 38.cpp 39.cpp 40.cpp
1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
s- {
6
7 int n,i,x,a:-1;
8 //clrscr();
9 printf("\n \n Ingrese un numero:");
10 scanf("%d",&n);
11
12 printf("\n \n paran: %d la serie es: ",n);
13 - for(i:l;i<=n;i++){
14 .x=i*a;
15 printf("%d,",x);
16 a:a+l;
17 }
18
19
20
21
22 getch();
23 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla6512.45168\39.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P.roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 21.cpp 21.cpp 24.cpp 25.cpp 26.cpp 27.cpp 28.cpp 29.cpp 30.cpp 31.cpp 32.cpp 34.cpp 35.cpp 36.cpp 37.cpp 3.3.cpp 39.cpp 40.cpp
1 #include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int n,i,f,a,b;
8 //clrscr();
9 printf(''\n \n Ingrese un numero:");
10 scanf("%d",&n);
11 a=-1;
12 b:1;
13 printf(''\n \n para n: %d la serie es: " , n).J
14 - for(i:l;i<:n;i++){
15 f=a+b;
16 a:b;
17 "b:f;

18 printf("%d,",f);
19
20 }
21
22
23
24
25 getch();
26 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla6512.45392\40.cpp - Dev-C+ + 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 21.cpp 21.cpp 24.cpp 25.cpp 26.cpp 27.cpp 28.cpp 29.cpp 30.cpp 31.cpp 32.cpp 34.cpp 35.cpp 36.cpp 37.cpp 33.cpp 39.cpp 40.cpp
1 #include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int n,i,x,a:0,b=l,c:1;
8 //clrscr();
9 printf(''\n \n Ingrese un numero:");
10 scanf("%d",&n);
11
12 printf( "\n \n para n: %d la serie es= .. , n);
13 printf( "%d, %d/16d, ", a, b , e);
14 - for(i=l;i<=n-3;i++){
15 x=a+b+c;
16 printf("%d,",x);
17 a:b;
18 -
. b c·,
19 c:x;
20 }
21
22
23
24
25 getch();
26 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla12556.10662\41.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 41.cpp 42.cpp 43.cpp 44.cpp 45.cpp 46.cpp 47.cpp 48.cpp 49.cpp 50.cpp 51.cpp 52.cpp 55.cpp 57.cpp 58.cpp 59.cpp
1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int n,i,x,cx;
8 //clrscr();
9 printf(''\n \n Ingrese un numero:");
10 scanf("%d",&n);
11 x=l;
12 cx:0;
13 printf(''\n \n paran: %d la serie es: " J n).J
14
15 - for(i=l;i<=n;i++){
16 'printf("%d,",x);
17 .cx:cx+l;
18
19 - if(cx::x){
20 ;x:x+l;
21 ,cx:0;
22 }
23
24 }
25
26
27
28

29 getch();
30 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla12556.11267\42.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 41.cpp 42.cpp 43.cpp 44.cpp 45.cpp 46.cpp 47.cpp 48.cpp 49.cpp 50.cpp 51.cpp 52.cpp 55.cpp 57.cpp 58.cpp 59.cpp
1 #include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int n,i,a=l,b=0;
8 //clrscr();
9 printf(''\n \n Ingrese un numero:");
10 scanf("%d",&n);
11
12 printf( "\n \n para n: %d la serie es = ", n);
13
14 - for(i=l;i<=n;i++){
if(i%2==0){
16 :Printf( "%d, ", b};
17 b:b+2;
18 }
19 - else{
20 'printf("%d,",a);
21 , a:a+2;
22 }
23
24
25 }
26
27
28
29
30 getch();
31 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla12556.11417\43.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 41.cpp 42.cpp 43.cpp 44.cpp 45.cpp 46.cpp 47.cpp 48.cpp 49.cpp 50.cpp 51.cpp 52.cpp 55.cpp 57.cpp 58.cpp 59.cpp
1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
s- {
6
7 int n,k,i,j;
8 //clrscr();
9 printf("\n Ingrese un numero:");
10 scanf("%d",&n);
11 printf("\n \n paran= %d la serie es= ",n);
for(i=l;i<=n;i++){
13 - for{j:l;j<:i;j++){
14 !printf("l, ");
15 }
16 - 'for(k:1; k<=i; k++ ){
17 [printf("0, ");
18 }
19
20
21 }
22
23
24
25
26
27 getch();
28 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla12556.11579\44.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 41.cpp 42.cpp 43.cpp 44.cpp 45.cpp 46.cpp 47.cpp 48.cpp 49.cpp 50.cpp 51.cpp 52.cpp 55.cpp 57.cpp 58.cpp 59.cpp
1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
s- {
6
7 int n,i,a=0;
8 //clrscr();
9 printf("\n \n Ingrese un numero=");
10 scanf("%d",&n);
11
12 printf("\n \n paran= %d la serie es =",n);
13 - for(i:0;i<=n-l;i++){
14 printf("%d,",a);
15 a=a+l;
16 }
17
18
19
20
21 getch();
22 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla12556.11740\45.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 41.cpp 42.cpp 43.cpp 44.cpp 45.cpp 46.cpp 47.cpp 48.cpp 49.cpp 50.cpp 51.cpp 52.cpp 55.cpp 57.cpp 58.cpp 59.cpp
1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
s- {
6
7 int n,i,x;
8 //clrscr();
9 printf("\n \n Ingrese un numero:");
10 scanf("%d",&n);
11
12 printf("\n \n paran: %d la serie es =",n);
13 - for(i:l;i<=n;i++){
14 x:pow(i,2);
15 printf("%d,",x);
16 }
17
18
19
20
21 getch();
22 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla12556.11970\46.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 41.cpp 42.cpp 43.cpp 44.cpp 45.cpp 46.cpp 47.cpp 48.cpp 49.cpp 50.cpp 51.cpp 52.cpp 55.cpp 57.cpp 58.cpp 59.cpp
1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
s- {
6
7 int n,i,x,a:0,b=l,c:1;
8 //clrscr();
9 printf("\n \n Ingrese un numero:");
10 scanf("%d",&n);
11
12 printf("\n \n paran: %d la serie es= ",n);
13 printf( "%d, %d/16d, ", a, b , e);
14 - for(i=l;i<=n-3;i++){
15 x=a+b+c;
16 printf("%d,",x);
17 a:b;
18 -bec j
19 c:x;
20 }
21
22
23
24
25 getch();
26 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla12556.12166\47.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 41.cpp 42.cpp 43.cpp 44.cpp 45.cpp 46.cpp 47.cpp 48.cpp 49.cpp 50.cpp 51.cpp 52.cpp 55.cpp 57.cpp 58.cpp 59.cpp
1 #include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int n,i,j,k;
8 //clrscr();
9 printf(''\n \n Ingrese un numero:");
10 scanf("%d",&n);
11
12 printf( "\n \n para n: %d la serie es = ", n);
13
14 - for(i=l;i<=n;i++){
if(i%2==0){
16 !
1
17 - for(j=l;j<=3;j++){
18
19 printf("4,");
20 }
21 }
22 - else{
•for(k=l;k<=4;k++}{
24
25 'printf("3,");
26 }
27
28 }
29 }
30
31 getch(};
32 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla12556.12403\48.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 41.cpp 42.cpp 43.cpp 44.cpp 45.cpp 46.cpp 47.cpp 48.cpp 49.cpp 50.cpp 51.cpp 52.cpp 55.cpp 57.cpp 58.cpp 59.cpp
1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
s- {
6
7 int n,k,i,j;
8 //clrscr();
9 printf("\n Ingrese un numero:");
10 scanf("%d",&n);
11 printf("\n \n paran= %d la serie es= ",n);
for(i=l;i<=n;i++){
13 - for{j:l;j<:i;j++){
14 !printf("e, ");
15 }
16 - 'for(k:1; k<=i; k++ ){
17 [printf("l, ");
18 }
19
20 }
21 getch();
22 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla12556.12601\49.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 41.cpp 42.cpp 43.cpp 44.cpp 45.cpp 46.cpp 47.cpp 48.cpp 49.cpp 50.cpp 51.cpp 52.cpp 55.cpp 57.cpp 58.cpp 59.cpp
1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
s- {
6
7 int n,i,j,s=0,fi,a=-1,b=l,fac;
8 //clrscr();
9 printf("\n \n Ingrese un numero:");
10 scanf("%d",&n);
11
12 printf("\n \n ");
13
14 - for(i=l;i<=n;i++){
15
16 fi=a+b;
17 - 'if(i%2::0){
18
19 s=s+fi;
20 }
21
22- else{
23 fac=l;
24- ,for(j:1; j<:fi; j++} {
25
26 ,fac:fac*j;
27 }
28 s:s+fac;
29 }
30 a:b;
31 b:fi;
32 }

33 printf("la sumatoria es %d '' J s)·J


34 getch();
��
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla12556.12778\50.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 41.cpp 42.cpp 43.cpp 44.cpp 45.cpp 46.cpp 47.cpp 48.cpp 49.cpp 50.cpp 51.cpp 52.cpp 55.cpp 57.cpp 58.cpp 59.cpp
1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int n,a=l,i,j;
8 //clrscr();
9 printf(''\n Ingrese un numero:");
10 scanf("%d",&n);
11 printf("\n \n");
for(i=n;i>=l;i-·){
13 a:1;
14 - for(j:l;j<:i;j++){
15 printf("%d u,a);
16 a=a+2;
17 }
18
19 printf("\n .. ) ;
20 }
21 getch();
22 }
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla12556.12968\51.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 41.cpp 42.cpp 43.cpp 44.cpp 45.cpp 46.cpp 47.cpp 48.cpp 49.cpp 50.cpp 51.cpp 52.cpp 55.cpp 57.cpp 58.cpp 59.cpp
1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
s- {
6
7 float n,s,x,f,a=-1,b=l;
8 int i;
9 //clrscr();
10 printf("\n \n Ingrese un numero:'');
11 scanf{"%f",&n);
12
13 printf(''\n \n '');
14
15 - for(i=l;i<=n;i++){
16
17 f=a+b;
18 a:b;
19 b=f;
20- if(i%2==0){
21 :x=pow(2,f);
22 s:s-(1/x);
23 }
24
25 - else{
26 ,x:pow( 2, f);
27 s=s+(l/x);
28 }
29
30 }
31 printf("la sumatoria es %f ",s);
32
33
34 getch{);
��
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla12556.13223\52.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 41.cpp 42.cpp 43.cpp 44.cpp 45.cpp 46.cpp 47.cpp 48.cpp 49.cpp 50.cpp 51.cpp 52.cpp 55.cpp 57.cpp 58.cpp 59.cpp
1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
s- {
6
7 float n,x,z,s=0,f=l,a=l,b=2;
8 int i,j;
9 //clrscr();
10 printf("\n \n Ingrese un numero=''}¡
11 scanf{"%f",&n);
12
13 printf(''\n \n '')¡
14
15 - for(i=l;i<=n;i++){
16
17 x=a*b;
18 ·z=a+b;
19 - if(i%2==0){
20
21 _s=s-(x/z);
22 }
23
24- else{
25 'f=l;
26- 'for(j:1; j<=z; j++ ){
27
28 ,f:f*j ¡
29 }
30 s=s+(x/f);
31 }
32 a:a+2;
33 b=b+2;
34 }
-
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla12556.13713\56.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 41.cpp 42.cpp 43.cpp 44.cpp 45.cpp 46.cpp 47.cpp 48.cpp 49.cpp 50.cpp 51.cpp 52.cpp 56.cpp 57.cpp 58.cpp 59.cpp
1 #include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int dig,n,cd:0;
8 //clrscr();
9 printf("Ingrese un numero:");
10 scanf("%d",&n);
while(n>0){
12 !dig:n%10;
13 - 'if(dig::0}{
14
15 }
16 - else{
17
18 cd:cd+l;
19
20 }
21
22 ¡n=n/10;
23 }
24
25 printf(" la cantidad de dígitos diferentes ceros son: %d ,
" cd) ,·
26

27 getch();
28 }
29
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla12556.13946\57.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 41.cpp 42.cpp 43.cpp 44.cpp 45.cpp 46.cpp 47.cpp 48.cpp 49.cpp 50.cpp 51.cpp 52.cpp 55.cpp 57.cpp 58.cpp 59.cpp
1 #include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
5 - {
6
7 int dig,n,x,cp:0,sd:0,cm:0;
8 //clrscr();
9 printf("Ingrese un numero:");
10 scanf("%d",&n);
11 x=n;
12 - while(x>0){
13 dig:x%10;
14
15 - if(dig%2==0){
16 ,cp:cp+l;
17 }
18
19 - if(dig%3==0){
20 'cm:cm+l;
21 }
22 sd:sd+dig;
23 x:x/10;
24 }
25
26 printf("\n del numero %d \n la cantidad de dígitos pares son %d \n la cantidad de dígitos multiplos de 3 son %d \n la suma de sus dígitos i
27
28 getch();
29 }

< >
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla12556.14109\58.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 41.cpp 42.cpp 43.cpp 44.cpp 45.cpp 46.cpp 47.cpp 48.cpp 49.cpp 50.cpp 51.cpp 52.cpp 55.cpp 57.cpp 58.cpp 59.cpp
1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
s- {
6
7 int dig,n,x,aux,cd=0,ig=0;
8 //clrscr();
9 printf("Ingrese un numero:");
10 scanf("%d",&n);
11 x=n;
12 - while(x>0){
13 dig:x%10;
14 'cd:cd+l;
if(cd>l){
:if(dig==aux){
17 _ig:ig+l;
18 }
19 - else{
20 lauxed.í.g j
21 }
22 }
23 - else{
24 aux:dig;
25 }
26 x=x/10;
27 }
28 - if(ig>:1){
29 printf("\n %d no es valido",n);
30 }
31 - else{

32 printf(''\n %d es valido" , n)•,


33 }
34
��
lii C:\Users\COREl7-1\AppData\Local\Temp\Rar$Dla12556.14340\59.cpp - Dev-C++ 5.11 X
file fdit �earch ':[tew P,roject �ecute Jools �tyle Window Help

D @• 111 ® [¡] 1 � 1 � .,. 19. 19. l lil •13 ti l 8 gg o Ll gg I � 1 I dJlJ i1I! TDM�C 4. 9 _ 2 64-bi e !le1ease 3
J @ <; l!J (g1obaJ.s) v V

Project Classes Debug 41.cpp 42.cpp 43.cpp 44.cpp 45.cpp 46.cpp 47.cpp 48.cpp 49.cpp 50.cpp 51.cpp 52.cpp Só.cpp 57.cpp 58.cpp 59.cpp
1 �include<stdio.h>
2 #include<conio.h>
3 #include<math.h>
4 int main()
s- {
6
7 int dig,n,x,nn:0;
8 //clrscr();
9 printf("Ingrese un numero:");
10 scanf("%d",&n);
11 x=n;
12 - while(x>0){
13 dig:x%10;
14 !nn=( nn*l0 )+dig;
15 x:x/10;
16 }
17 - 'if(nn::n){
18 printf(" \n %des capicua",n);
19 }
20- else{
21 ,pr intf ( "\n %d no es capicua", n);
22 }
23
24
25
26 getch();
27 }

También podría gustarte