Tareas y Proyectos
Sunday, January 08, 2006
Programa en C++ "la suma del uno al 100 (1+100,2+99....)"
//la suma del uno al 100 (1+100,2+99....)
#include
#include
main()
{
int r=0,i,j=100,a=3;
for(i=1;i<=50;i++)
{
r=(i+j);
j=j-1;
gotoxy(a,2);cout<<" La suma de:"<
a=a+21;
}
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment