<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2990189064115893201</id><updated>2011-04-21T10:45:27.729-07:00</updated><title type='text'>Programación Hector Villar</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://programacion-villar.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2990189064115893201/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://programacion-villar.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Programación Hector Villar</name><uri>http://www.blogger.com/profile/09154509031203010785</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2990189064115893201.post-4500921503200195473</id><published>2008-06-04T14:56:00.001-07:00</published><updated>2008-06-04T15:08:38.638-07:00</updated><title type='text'>Obtencion de numeros perfectos del 1 al 1500</title><content type='html'>Aqui esta el codigo para buscar los numeros perfectos del 1 al 1500.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;#include stdlib.h&lt;br /&gt;#include stdio.h&lt;br /&gt;#include conio.h&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;system("cls");&lt;br /&gt;int x,d,z;&lt;br /&gt;printf("Numeros perfectos del 1 al 1500: \n");&lt;br /&gt;getch();&lt;br /&gt;for(x=1;x&lt;=1500;x++)/*desde el numero 1 al 1500 busca los numeros perfectos*/&lt;br /&gt;{z=0;&lt;br /&gt;for(d=1;x&gt;=d;d++) /*aqui se le aplica la definicion de numero perfecto*/&lt;br /&gt;{&lt;br /&gt;if(x%d==0)&lt;br /&gt;{if(d!=x)&lt;br /&gt;{z=z+d;&lt;br /&gt;printf("%d ",d);}}&lt;br /&gt;}&lt;br /&gt;if(z==x)/*Si se verifica que es un numero perfecto*/&lt;br /&gt;{printf("\nEl numero %d es perfecto\n",x);getch();}/*lo muestra en pantalla*/&lt;br /&gt;else&lt;br /&gt;system("cls");&lt;br /&gt;printf("Los factores son: ");/*muestra los factores*/&lt;br /&gt;}&lt;br /&gt;system("cls");&lt;br /&gt;getch();&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2990189064115893201-4500921503200195473?l=programacion-villar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programacion-villar.blogspot.com/feeds/4500921503200195473/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2990189064115893201&amp;postID=4500921503200195473' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2990189064115893201/posts/default/4500921503200195473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2990189064115893201/posts/default/4500921503200195473'/><link rel='alternate' type='text/html' href='http://programacion-villar.blogspot.com/2008/06/obtencion-de-numeros-perfectos-del-1-al.html' title='Obtencion de numeros perfectos del 1 al 1500'/><author><name>Programación Hector Villar</name><uri>http://www.blogger.com/profile/09154509031203010785</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
