Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.32 KB | None | 0 0
  1. #include <iostream.h>
  2. #include <conio.h>
  3. main(){
  4. int i;
  5. clrscr();
  6. cout<<("\t\nEste programa contara hasta 40 con cada tecladazo\n que de con la tecla ENTER");
  7. cout<<("\nPara comenzar, presione enter:\n");
  8. i=0;
  9. for(i=0;i<=40;i++){
  10. gotoxy(10,20);
  11. cout<<("\n%d\n", i);
  12. gotoxy(10,21);
  13. cout<<("\n%d\n", i);
  14. gotoxy(10,22);
  15. cout<<("\n%d\n", i);
  16. gotoxy(10,23);
  17. cout<<("\n%d\n", i);
  18. gotoxy(10,24);
  19. cout<<("\n%d\n", i);
  20. gotoxy(10,25);
  21. cout<<("\n%d\n", i);
  22. gotoxy(10,26);
  23. cout<<("\n%d\n", i);
  24. gotoxy(10,27);
  25. cout<<("\n%d\n", i);
  26. gotoxy(10,28);
  27. cout<<("\n%d\n", i);
  28. gotoxy(10,29);
  29. cout<<("\n%d\n", i);
  30. gotoxy(13,20);
  31. cout<<("\n%d\n", i);
  32. gotoxy(16,20);
  33. cout<<("\n%d\n", i);
  34. gotoxy(19,20);
  35. cout<<("\n%d\n", i);
  36. gotoxy(19,21);
  37. cout<<("\n%d\n", i);
  38. gotoxy(19,22);
  39. cout<<("\n%d\n", i);
  40. gotoxy(19,23);
  41. cout<<("\n%d\n", i);
  42. gotoxy(19,24);
  43. cout<<("\n%d\n", i);
  44. gotoxy(19,25);
  45. cout<<("\n%d\n", i);
  46. gotoxy(19,26);
  47. cout<<("\n%d\n", i);
  48. gotoxy(19,27);
  49. cout<<("\n%d\n", i);
  50. gotoxy(19,28);
  51. cout<<("\n%d\n", i);
  52. gotoxy(19,29);
  53. cout<<("\n%d\n", i);
  54. gotoxy(10,30);
  55. cout<<("\n%d\n", i);
  56. gotoxy(13,30);
  57. cout<<("\n%d\n", i);
  58. gotoxy(16,30);
  59. cout<<("\n%d\n", i);
  60. gotoxy(19,30);
  61. cout<<("\n%d\n", i);
  62. cout<<("\n");
  63. getch();
  64. }
  65.  
  66. cout<<("\nConteo finalizado\n");
  67. cout<<("\nPara salir, presione ENTER\n");
  68. getch();
  69. return 0;
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement