ejemplo
Fabricante:Polo Tipo:Camisa Cantidad:2 Precio:US$2000
yo quiero que la cantidad se multiplica con el precio pero no me deja
Código
#include<stdio.h> #include<conio.c> char fabricante[40]; int cant,x=0,s=5,tipo; float descuento,tsueldo,precio,total; main() { gotoxy(1,2);printf("%c",186); gotoxy(1,3);printf("%c",186); gotoxy(1,4);printf("%c",186); gotoxy(1,5);printf("%c",186); gotoxy(1,6);printf("%c",186); gotoxy(1,7);printf("%c",186); gotoxy(1,8);printf("%c",186); gotoxy(1,9);printf("%c",186); gotoxy(1,10);printf("%c",186); gotoxy(1,11);printf("%c",186); gotoxy(1,12);printf("%c",186); gotoxy(1,13);printf("%c",186); gotoxy(1,14);printf("%c",186); gotoxy(1,15);printf("%c",186); gotoxy(1,16);printf("%c",186); gotoxy(1,17);printf("%c",186); gotoxy(1,17);printf("%c",200); gotoxy(2,17);printf("%c",205); gotoxy(3,17);printf("%c",205); gotoxy(4,17);printf("%c",205); gotoxy(5,17);printf("%c",205); gotoxy(6,17);printf("%c",205); gotoxy(7,17);printf("%c",205); gotoxy(8,17);printf("%c",205); gotoxy(9,17);printf("%c",205); gotoxy(10,17);printf("%c",205); gotoxy(11,17);printf("%c",205); gotoxy(12,17);printf("%c",205); gotoxy(13,17);printf("%c",205); gotoxy(14,17);printf("%c",205); gotoxy(15,17);printf("%c",205); gotoxy(16,17);printf("%c",205); gotoxy(17,17);printf("%c",205); gotoxy(18,17);printf("%c",205); gotoxy(19,17);printf("%c",205); gotoxy(20,17);printf("%c",205); gotoxy(21,17);printf("%c",205); gotoxy(22,17);printf("%c",205); gotoxy(23,17);printf("%c",205); gotoxy(24,17);printf("%c",205); gotoxy(25,17);printf("%c",205); gotoxy(26,17);printf("%c",205); gotoxy(27,17);printf("%c",205); gotoxy(28,17);printf("%c",205); gotoxy(29,17);printf("%c",205); gotoxy(30,17);printf("%c",205); gotoxy(31,17);printf("%c",205); gotoxy(32,17);printf("%c",205); gotoxy(33,17);printf("%c",205); gotoxy(34,17);printf("%c",205); gotoxy(35,17);printf("%c",205); gotoxy(36,17);printf("%c",205); gotoxy(37,17);printf("%c",205); gotoxy(38,17);printf("%c",205); gotoxy(39,17);printf("%c",205); gotoxy(40,17);printf("%c",205); gotoxy(41,17);printf("%c",205); gotoxy(42,17);printf("%c",205); gotoxy(43,17);printf("%c",205); gotoxy(44,17);printf("%c",205); gotoxy(45,17);printf("%c",205); gotoxy(46,17);printf("%c",205); gotoxy(47,17);printf("%c",205); gotoxy(48,17);printf("%c",205); gotoxy(49,17);printf("%c",205); gotoxy(50,17);printf("%c",205); gotoxy(51,17);printf("%c",205); gotoxy(52,17);printf("%c",205); gotoxy(53,17);printf("%c",205); gotoxy(54,17);printf("%c",205); gotoxy(55,17);printf("%c",205); gotoxy(56,17);printf("%c",205); gotoxy(57,17);printf("%c",205); gotoxy(58,17);printf("%c",205); gotoxy(59,17);printf("%c",205); gotoxy(60,17);printf("%c",205); gotoxy(61,17);printf("%c",205); gotoxy(62,17);printf("%c",205); gotoxy(63,17);printf("%c",205); gotoxy(64,17);printf("%c",205); gotoxy(65,17);printf("%c",205); gotoxy(66,17);printf("%c",205); gotoxy(67,17);printf("%c",205); gotoxy(68,17);printf("%c",205); gotoxy(69,17);printf("%c",205); gotoxy(70,17);printf("%c",205); gotoxy(71,17);printf("%c",205); gotoxy(72,17);printf("%c",205); gotoxy(73,17);printf("%c",205); gotoxy(74,17);printf("%c",205); gotoxy(75,17);printf("%c",205); gotoxy(76,17);printf("%c",205); gotoxy(77,17);printf("%c",205); gotoxy(78,17);printf("%c",205); gotoxy(79,17);printf("%c",205); gotoxy(80,17);printf("%c",188); gotoxy(80,16);printf("%c",186); gotoxy(80,15);printf("%c",186); gotoxy(80,14);printf("%c",186); gotoxy(80,13);printf("%c",186); gotoxy(80,12);printf("%c",186); gotoxy(80,11);printf("%c",186); gotoxy(80,10);printf("%c",186); gotoxy(80,9);printf("%c",186); gotoxy(80,8);printf("%c",186); gotoxy(80,7);printf("%c",186); gotoxy(80,6);printf("%c",186); gotoxy(80,5);printf("%c",186); gotoxy(80,4);printf("%c",186); gotoxy(80,3);printf("%c",186); gotoxy(80,2);printf("%c",187); gotoxy(1,2);printf("%c",201); gotoxy(2,2);printf("%c",205); gotoxy(3,2);printf("%c",205); gotoxy(4,2);printf("%c",205); gotoxy(5,2);printf("%c",205); gotoxy(6,2);printf("%c",205); gotoxy(7,2);printf("%c",205); gotoxy(8,2);printf("%c",205); gotoxy(9,2);printf("%c",205); gotoxy(10,2);printf("%c",205); gotoxy(11,2);printf("%c",205); gotoxy(12,2);printf("%c",205); gotoxy(13,2);printf("%c",205); gotoxy(14,2);printf("%c",205); gotoxy(15,2);printf("%c",205); gotoxy(16,2);printf("%c",205); gotoxy(17,2);printf("%c",205); gotoxy(18,2);printf("%c",205); gotoxy(19,2);printf("%c",205); gotoxy(20,2);printf("%c",205); gotoxy(21,2);printf("%c",205); gotoxy(22,2);printf("%c",205); gotoxy(23,2);printf("%c",205); gotoxy(24,2);printf("%c",205); gotoxy(25,2);printf("%c",205); gotoxy(26,2);printf("%c",205); gotoxy(27,2);printf("%c",205); gotoxy(28,2);printf("%c",205); gotoxy(29,2);printf("%c",205); gotoxy(30,2);printf("%c",205); gotoxy(31,2);printf("%c",205); gotoxy(32,2);printf("%c",205); gotoxy(33,2);printf("%c",205); gotoxy(34,2);printf("%c",205); gotoxy(35,2);printf("%c",205); gotoxy(36,2);printf("%c",205); gotoxy(37,2);printf("%c",205); gotoxy(38,2);printf("%c",205); gotoxy(39,2);printf("%c",205); gotoxy(40,2);printf("%c",205); gotoxy(41,2);printf("%c",205); gotoxy(42,2);printf("%c",205); gotoxy(43,2);printf("%c",205); gotoxy(44,2);printf("%c",205); gotoxy(45,2);printf("%c",205); gotoxy(46,2);printf("%c",205); gotoxy(47,2);printf("%c",205); gotoxy(48,2);printf("%c",205); gotoxy(49,2);printf("%c",205); gotoxy(50,2);printf("%c",205); gotoxy(51,2);printf("%c",205); gotoxy(52,2);printf("%c",205); gotoxy(53,2);printf("%c",205); gotoxy(54,2);printf("%c",205); gotoxy(55,2);printf("%c",205); gotoxy(56,2);printf("%c",205); gotoxy(57,2);printf("%c",205); gotoxy(58,2);printf("%c",205); gotoxy(59,2);printf("%c",205); gotoxy(60,2);printf("%c",205); gotoxy(61,2);printf("%c",205); gotoxy(62,2);printf("%c",205); gotoxy(63,2);printf("%c",205); gotoxy(64,2);printf("%c",205); gotoxy(65,2);printf("%c",205); gotoxy(66,2);printf("%c",205); gotoxy(67,2);printf("%c",205); gotoxy(68,2);printf("%c",205); gotoxy(69,2);printf("%c",205); gotoxy(70,2);printf("%c",205); gotoxy(71,2);printf("%c",205); gotoxy(72,2);printf("%c",205); gotoxy(73,2);printf("%c",205); gotoxy(74,2);printf("%c",205); gotoxy(75,2);printf("%c",205); gotoxy(76,2);printf("%c",205); gotoxy(77,2);printf("%c",205); gotoxy(78,2);printf("%c",205); gotoxy(79,2);printf("%c",205); gotoxy(2,5);printf("%c",205); gotoxy(3,5);printf("%c",205); gotoxy(4,5);printf("%c",205); gotoxy(5,5);printf("%c",205); gotoxy(6,5);printf("%c",205); gotoxy(7,5);printf("%c",205); gotoxy(8,5);printf("%c",205); gotoxy(9,5);printf("%c",205); gotoxy(10,5);printf("%c",205); gotoxy(11,5);printf("%c",205); gotoxy(12,5);printf("%c",205); gotoxy(13,5);printf("%c",205); gotoxy(14,5);printf("%c",205); gotoxy(15,5);printf("%c",205); gotoxy(16,5);printf("%c",205); gotoxy(17,5);printf("%c",205); gotoxy(18,5);printf("%c",205); gotoxy(19,5);printf("%c",205); gotoxy(20,5);printf("%c",205); gotoxy(21,5);printf("%c",205); gotoxy(22,5);printf("%c",205); gotoxy(23,5);printf("%c",205); gotoxy(24,5);printf("%c",205); gotoxy(25,5);printf("%c",205); gotoxy(26,5);printf("%c",205); gotoxy(27,5);printf("%c",205); gotoxy(28,5);printf("%c",205); gotoxy(29,5);printf("%c",205); gotoxy(30,5);printf("%c",205); gotoxy(31,5);printf("%c",205); gotoxy(32,5);printf("%c",205); gotoxy(33,5);printf("%c",205); gotoxy(34,5);printf("%c",205); gotoxy(35,5);printf("%c",205); gotoxy(36,5);printf("%c",205); gotoxy(37,5);printf("%c",205); gotoxy(38,5);printf("%c",205); gotoxy(39,5);printf("%c",205); gotoxy(40,5);printf("%c",205); gotoxy(41,5);printf("%c",205); gotoxy(42,5);printf("%c",205); gotoxy(43,5);printf("%c",205); gotoxy(44,5);printf("%c",205); gotoxy(45,5);printf("%c",205); gotoxy(46,5);printf("%c",205); gotoxy(47,5);printf("%c",205); gotoxy(48,5);printf("%c",205); gotoxy(49,5);printf("%c",205); gotoxy(50,5);printf("%c",205); gotoxy(51,5);printf("%c",205); gotoxy(52,5);printf("%c",205); gotoxy(53,5);printf("%c",205); gotoxy(54,5);printf("%c",205); gotoxy(55,5);printf("%c",205); gotoxy(56,5);printf("%c",205); gotoxy(57,5);printf("%c",205); gotoxy(58,5);printf("%c",205); gotoxy(59,5);printf("%c",205); gotoxy(60,5);printf("%c",205); gotoxy(61,5);printf("%c",205); gotoxy(62,5);printf("%c",205); gotoxy(63,5);printf("%c",205); gotoxy(64,5);printf("%c",205); gotoxy(65,5);printf("%c",205); gotoxy(66,5);printf("%c",205); gotoxy(67,5);printf("%c",205); gotoxy(68,5);printf("%c",205); gotoxy(69,5);printf("%c",205); gotoxy(70,5);printf("%c",205); gotoxy(71,5);printf("%c",205); gotoxy(72,5);printf("%c",205); gotoxy(73,5);printf("%c",205); gotoxy(74,5);printf("%c",205); gotoxy(75,5);printf("%c",205); gotoxy(76,5);printf("%c",205); gotoxy(77,5);printf("%c",205); gotoxy(78,5);printf("%c",205); gotoxy(79,5);printf("%c",205); gotoxy(34,4);printf("ALEO'S MODA"); gotoxy(2,6);printf("Fabricante: Tipo: Cantidad: Precio:RD$ "); gotoxy(30,16);printf("TOTAL=>:RD$"); for(x=1; x<=5; x=x+1) { s=s+1; fflush(stdin); gotoxy(13,s); gets (fabricante); gotoxy(28,s);scanf("%s",&tipo); gotoxy(50,s);scanf("%i",&cant); gotoxy(72,s);scanf("%.2f",&precio); total=cant*precio; gotoxy(44,16);printf("%.2f",&total); } getch(); }