Advertisement
konker22

factura

Jun 2nd, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.51 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <conio.h>
  4.  
  5. int main()
  6. {
  7. char a[20],b[11],c,d[20],e[15],f,g[15],h,i,j[30],k[30];
  8.  
  9. textbackground(WHITE);
  10. textcolor(BLACK);
  11. clrscr();
  12.  
  13. gotoxy(1,1);
  14. printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",201,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,187);
  15. gotoxy(25,2);
  16. printf("%c",186);
  17. gotoxy(25,3);
  18. printf("%c",186);
  19. gotoxy(25,4);
  20. printf("%c",186);
  21. gotoxy(25,5);
  22. printf("%c",186);
  23. gotoxy(1,6);
  24. printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",200,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,188);
  25. gotoxy(1,2);
  26. printf("%c",186);
  27. gotoxy(1,3);
  28. printf("%c",186);
  29. gotoxy(1,4);
  30. printf("%c",186);
  31. gotoxy(1,5);
  32. printf("%c",186);
  33. gotoxy(3,2);
  34. printf("Nombre de la empresa");
  35. gotoxy(3,3);
  36. printf("Comuna:");
  37. gotoxy(3,4);
  38. printf("Direccion:");
  39. gotoxy(3,5);
  40. printf("Fono:");
  41.  
  42. gotoxy(30,1);
  43. printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",201,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,187);
  44. gotoxy(30,2);
  45. printf("%c",186);
  46. gotoxy(31,2);
  47. cprintf("Nombre empresa");
  48. gotoxy(30,3);
  49. printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",200,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,188);
  50. gotoxy(30,2);
  51. printf("%c",186);
  52. gotoxy(47,2);
  53. printf("%c",186);
  54.  
  55. gotoxy(58,1);
  56. printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",201,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,187);
  57. gotoxy(80,2);
  58. printf("%c",186);
  59. gotoxy(80,3);
  60. printf("%c",186);
  61. gotoxy(80,4);
  62. printf("%c",186);
  63. gotoxy(58,5);
  64. printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",200,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,188);
  65. gotoxy(58,2);
  66. printf("%c",186);
  67. gotoxy(58,3);
  68. printf("%c",186);
  69. gotoxy(58,4);
  70. printf("%c",186);
  71. gotoxy(60,2);
  72. printf("R.U.T:");
  73. gotoxy(66,3);
  74. printf("FACTURA");
  75. gotoxy(62,4);
  76. printf("N%c Numero factura",167);
  77.  
  78. textcolor(BLACK);
  79. gotoxy(1,7);
  80. printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",201,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,187);
  81. gotoxy(1,14);
  82. printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",200,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,188);
  83. gotoxy(1,8);
  84. printf("%c",186);
  85. gotoxy(1,9);
  86. printf("%c",186);
  87. gotoxy(1,10);
  88. printf("%c",186);
  89. gotoxy(1,11);
  90. printf("%c",186);
  91. gotoxy(1,12);
  92. printf("%c",186);
  93. gotoxy(1,13);
  94. printf("%c",186);
  95. gotoxy(80,8);
  96. printf("%c",186);
  97. gotoxy(80,9);
  98. printf("%c",186);
  99. gotoxy(80,10);
  100. printf("%c",186);
  101. gotoxy(80,11);
  102. printf("%c",186);
  103. gotoxy(80,12);
  104. printf("%c",186);
  105. gotoxy(80,13);
  106. printf("%c",186);
  107.  
  108.  
  109. gotoxy(1,15);
  110. printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",201,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,203,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,187);
  111. gotoxy(1,25);
  112. printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",200,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,202,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,205,188);
  113. gotoxy(17,16);
  114. printf("%c",186);
  115. gotoxy(17,17);
  116. printf("%c",186);
  117. gotoxy(17,18);
  118. printf("%c",186);
  119. gotoxy(17,19);
  120. printf("%c",186);
  121. gotoxy(17,20);
  122. printf("%c",186);
  123. gotoxy(17,21);
  124. printf("%c",186);
  125. gotoxy(17,22);
  126. printf("%c",186);
  127. gotoxy(17,23);
  128. printf("%c",186);
  129. gotoxy(17,24);
  130. printf("%c",186);
  131.  
  132. gotoxy(1,16);
  133. printf("%c",186);
  134. gotoxy(1,17);
  135. printf("%c",186);
  136. gotoxy(1,18);
  137. printf("%c",186);
  138. gotoxy(1,19);
  139. printf("%c",186);
  140. gotoxy(1,20);
  141. printf("%c",186);
  142. gotoxy(1,12);
  143. printf("%c",186);
  144. gotoxy(1,21);
  145. printf("%c",186);
  146. gotoxy(1,22);
  147. printf("%c",186);
  148. gotoxy(1,23);
  149. printf("%c",186);
  150. gotoxy(1,24);
  151. printf("%c",186);
  152. gotoxy(80,16);
  153. printf("%c",186);
  154. gotoxy(80,17);
  155. printf("%c",186);
  156. gotoxy(80,18);
  157. printf("%c",186);
  158. gotoxy(80,19);
  159. printf("%c",186);
  160. gotoxy(80,20);
  161. printf("%c",186);
  162. gotoxy(80,21);
  163. printf("%c",186);
  164. gotoxy(80,22);
  165. printf("%c",186);
  166. gotoxy(80,23);
  167. printf("%c",186);
  168. gotoxy(80,24);
  169. printf("%c",186);
  170.  
  171.  
  172. gotoxy(2,8);
  173. printf("Fecha:",f );
  174. scanf("%s",&f);
  175.  
  176. fflush(stdin);
  177. gotoxy(2,9);
  178. printf("Nombre y Apellido:",a);
  179. gets(a);
  180.  
  181. gotoxy(60,9);
  182. printf("RUT:",b);
  183. scanf("%s", &b);
  184.  
  185. fflush(stdin);
  186. gotoxy(2,10);
  187. printf("Direccion:",d);
  188. gets(d);
  189.  
  190. fflush(stdin);
  191. gotoxy(38,10);
  192. printf("Ciudad:",e);
  193. gets(e);
  194.  
  195. fflush(stdin);
  196. gotoxy(60,10);
  197. printf("Comuna:",g);
  198. gets(g);
  199.  
  200. gotoxy(2,11);
  201. printf("Telefono:",h);
  202. scanf("%s",&h);
  203. gotoxy(38,11);
  204. printf("Celular:",i);
  205. scanf("%s",&i);
  206.  
  207. fflush(stdin);
  208. gotoxy(2,12);
  209. printf("Condiciones de la venta:",j);
  210. gets(j);
  211.  
  212. fflush(stdin);
  213. gotoxy(2,13);
  214. printf("Forma de pago:",k);
  215. gets(k);
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222. gotoxy(30,20);
  223. system("pause");
  224.  
  225.  
  226.  
  227. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement