#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include<windows.h>
void gotoxy(int x,int y)
{
HANDLE hcon;
hcon = GetStdHandle(STD_OUTPUT_HANDLE);
COORD dwPos;
dwPos.X = x;
dwPos.Y= y;
SetConsoleCursorPosition(hcon,dwPos);
}
void cuadro()
{
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",187);
gotoxy(1,3);printf("%C",186);
gotoxy(78,3);printf("%C",186);
gotoxy(1,4);printf("%C",186);
gotoxy(78,4);printf("%C",186);
gotoxy(1,5);printf("%C",186);
gotoxy(78,5);printf("%C",186);
gotoxy(1,6);printf("%C",186);
gotoxy(78,6);printf("%C",186);
gotoxy(1,7);printf("%C",186);
gotoxy(78,7);printf("%C",186);
gotoxy(1,8);printf("%C",186);
gotoxy(78,8);printf("%C",186);
gotoxy(1,9);printf("%C",186);
gotoxy(78,9);printf("%C",186);
gotoxy(1,10);printf("%C",186);
gotoxy(78,10);printf("%C",186);
gotoxy(1,11);printf("%C",186);
gotoxy(78,11);printf("%C",186);
gotoxy(1,12);printf("%C",186);
gotoxy(78,12);printf("%C",186);
gotoxy(1,13);printf("%C",186);
gotoxy(78,13);printf("%C",186);
gotoxy(1,14);printf("%C",186);
gotoxy(78,14);printf("%C",186);
gotoxy(1,15);printf("%C",186);
gotoxy(78,15);printf("%C",186);
gotoxy(1,16);printf("%C",186);
gotoxy(78,16);printf("%C",186);
gotoxy(1,17);printf("%C",186);
gotoxy(78,16);printf("%C",186);
gotoxy(1,17);printf("%C",186);
gotoxy(78,17);printf("%C",186);
gotoxy(1,18);printf("%C",186);
gotoxy(78,18);printf("%C",186);
gotoxy(1,19);printf("%C",186);
gotoxy(78,19);printf("%C",186);
gotoxy(1,20);printf("%C",200);
gotoxy(2,20);printf("%c",205);
gotoxy(3,20);printf("%c",205);
gotoxy(4,20);printf("%c",205);
gotoxy(5,20);printf("%c",205);
gotoxy(6,20);printf("%c",205);
gotoxy(7,20);printf("%c",205);
gotoxy(8,20);printf("%c",205);
gotoxy(9,20);printf("%c",205);
gotoxy(10,20);printf("%c",205);
gotoxy(11,20);printf("%c",205);
gotoxy(12,20);printf("%c",205);
gotoxy(13,20);printf("%c",205);
gotoxy(14,20);printf("%c",205);
gotoxy(15,20);printf("%c",205);
gotoxy(16,20);printf("%c",205);
gotoxy(17,20);printf("%c",205);
gotoxy(18,20);printf("%c",205);
gotoxy(19,20);printf("%c",205);
gotoxy(20,20);printf("%c",205);
gotoxy(21,20);printf("%c",205);
gotoxy(22,20);printf("%c",205);
gotoxy(23,20);printf("%c",205);
gotoxy(24,20);printf("%c",205);
gotoxy(25,20);printf("%c",205);
gotoxy(26,20);printf("%c",205);
gotoxy(27,20);printf("%c",205);
gotoxy(28,20);printf("%c",205);
gotoxy(29,20);printf("%c",205);
gotoxy(30,20);printf("%c",205);
gotoxy(31,20);printf("%c",205);
gotoxy(32,20);printf("%c",205);
gotoxy(33,20);printf("%c",205);
gotoxy(34,20);printf("%c",205);
gotoxy(35,20);printf("%c",205);
gotoxy(36,20);printf("%c",205);
gotoxy(37,20);printf("%c",205);
gotoxy(38,20);printf("%c",205);
gotoxy(39,20);printf("%c",205);
gotoxy(40,20);printf("%c",205);
gotoxy(41,20);printf("%c",205);
gotoxy(42,20);printf("%c",205);
gotoxy(43,20);printf("%c",205);
gotoxy(44,20);printf("%c",205);
gotoxy(45,20);printf("%c",205);
gotoxy(46,20);printf("%c",205);
gotoxy(47,20);printf("%c",205);
gotoxy(48,20);printf("%c",205);
gotoxy(49,20);printf("%c",205);
gotoxy(50,20);printf("%c",205);
gotoxy(51,20);printf("%c",205);
gotoxy(52,20);printf("%c",205);
gotoxy(53,20);printf("%c",205);
gotoxy(54,20);printf("%c",205);
gotoxy(55,20);printf("%C",205);
gotoxy(56,20);printf("%C",205);
gotoxy(57,20);printf("%C",205);
gotoxy(58,20);printf("%C",205);
gotoxy(59,20);printf("%C",205);
gotoxy(60,20);printf("%C",205);
gotoxy(61,20);printf("%c",205);
gotoxy(62,20);printf("%c",205);
gotoxy(63,20);printf("%c",205);
gotoxy(64,20);printf("%c",205);
gotoxy(65,20);printf("%c",205);
gotoxy(66,20);printf("%c",205);
gotoxy(67,20);printf("%c",205);
gotoxy(68,20);printf("%c",205);
gotoxy(69,20);printf("%C",205);
gotoxy(70,20);printf("%C",205);
gotoxy(71,20);printf("%C",205);
gotoxy(72,20);printf("%C",205);
gotoxy(73,20);printf("%c",205);
gotoxy(74,20);printf("%C",205);
gotoxy(75,20);printf("%C",205);
gotoxy(76,20);printf("%c",205);
gotoxy(77,20);printf("%c",205);
gotoxy(78,20);printf("%C",188);
}
main()
{
system("Color A");
int contador, ncasos, acumulador=0;
cuadro();
gotoxy(16,3);printf("CASOS DE TIFOIDEA EN:\n");
gotoxy(16,4); printf("HUAQUILLAS ( )\n");
gotoxy(16,5); printf("lAS LAJAS ( )\n");
gotoxy(16,6); printf("ARENILLAS ( )\n");
gotoxy(16,7); printf("SANTA ROSA ( )\n");
gotoxy(16,8); printf("MACHALA ( )\n");
gotoxy(16,9); printf("MARCABELI ( )\n");
gotoxy(16,10);printf("ZARUMA ( )\n");
gotoxy(16,11);printf("PORTOVELO ( )\n");
gotoxy(16,12);printf("PIÑAS ( )\n");
gotoxy(16,13);printf("CHILLA ( )\n");
gotoxy(16,14);printf("BALSAS ( )\n");
gotoxy(16,15);printf("PASAJE ( )\n");
gotoxy(16,16);printf("ATAHUALPA ( )\n");
gotoxy(16,17);printf("EL GUABO ( )\n");
for(contador=4;contador<18;contador++)
{
gotoxy(32,contador);scanf("%d",&ncasos);
acumulador=acumulador+ncasos;
}
gotoxy(16,19);printf("el total de casos de tifoidea son %d",acumulador);
}