#include "stdio.h"
#include "stdlib.h"
#include "conio.h"
#include "iostream.h"

void main ( void )
{
int x;
int k;
clrscr();
x = 0;
k = 1;  // inicializacion
while ( k <= 100 )          // condicion

      {
	x=x+k;     // procesamiento
		 //asignacion
	k++;      // actualizacion
      }

getch ();

}

Hosted by www.Geocities.ws

1