Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream.h>
- #include <conio.h>
- main(){
- int i;
- clrscr();
- cout<<("\t\nEste programa contara hasta 40 con cada tecladazo\n que de con la tecla ENTER");
- cout<<("\nPara comenzar, presione enter:\n");
- i=0;
- for(i=0;i<=40;i++){
- gotoxy(10,20);
- cout<<("\n%d\n", i);
- gotoxy(10,21);
- cout<<("\n%d\n", i);
- gotoxy(10,22);
- cout<<("\n%d\n", i);
- gotoxy(10,23);
- cout<<("\n%d\n", i);
- gotoxy(10,24);
- cout<<("\n%d\n", i);
- gotoxy(10,25);
- cout<<("\n%d\n", i);
- gotoxy(10,26);
- cout<<("\n%d\n", i);
- gotoxy(10,27);
- cout<<("\n%d\n", i);
- gotoxy(10,28);
- cout<<("\n%d\n", i);
- gotoxy(10,29);
- cout<<("\n%d\n", i);
- gotoxy(13,20);
- cout<<("\n%d\n", i);
- gotoxy(16,20);
- cout<<("\n%d\n", i);
- gotoxy(19,20);
- cout<<("\n%d\n", i);
- gotoxy(19,21);
- cout<<("\n%d\n", i);
- gotoxy(19,22);
- cout<<("\n%d\n", i);
- gotoxy(19,23);
- cout<<("\n%d\n", i);
- gotoxy(19,24);
- cout<<("\n%d\n", i);
- gotoxy(19,25);
- cout<<("\n%d\n", i);
- gotoxy(19,26);
- cout<<("\n%d\n", i);
- gotoxy(19,27);
- cout<<("\n%d\n", i);
- gotoxy(19,28);
- cout<<("\n%d\n", i);
- gotoxy(19,29);
- cout<<("\n%d\n", i);
- gotoxy(10,30);
- cout<<("\n%d\n", i);
- gotoxy(13,30);
- cout<<("\n%d\n", i);
- gotoxy(16,30);
- cout<<("\n%d\n", i);
- gotoxy(19,30);
- cout<<("\n%d\n", i);
- cout<<("\n");
- getch();
- }
- cout<<("\nConteo finalizado\n");
- cout<<("\nPara salir, presione ENTER\n");
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement