Programas en c++

Tuesday, January 24, 2006

Algoritmo que imprime los números del 1 al 10 usando do-while

#include <iostream.h>
#include <conio.h>

main()

{
int c;
do
{
c++;
cout<<c<<endl;
}
while(c<10);
getch();
}

0 Comments:

Post a Comment

<< Home

Google