switch (opc1)
{
case 1:
resul1=0;
window(4,9,37,20); textbackground(BLUE); textcolor(LIGHTGREEN); clrscr();
gotoxy(7,2); cprintf("REALIZANDO SUMA");
gotoxy(3,5); cprintf("¨Cauntos #ïs deseas sumar?: ");
cscanf("%i", &opc2);
for (i=1; i<=opc2; i++)
{
window(4,9,37,20); textbackground(BLUE); textcolor(LIGHTGREEN); clrscr();
gotoxy(3,2); cprintf("Digita numeros menores \n\r que 999999999");
gotoxy(4,6);cprintf("Digita un numero: ");
window(25,14,34,14); textbackground(LIGHTGRAY); textcolor(BLACK); clrscr();
cscanf("%lf", &sum);
resul1=resul1+sum;
}