" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
===================================================
#include <stdio.h>
#include <conio.h>
main()
{int n,i=1,sum=0,prod=1;
do
{printf ("Ingrese %d numero: ",i);
scanf("%d",&n);
sum = sum+n;
prod=prod*n;
i=i+1;
}while (!(i>30));
printf ("\n\n La suma total es: %d",sum);
printf ("\n El producto resultante es: %d",prod);
getch();
}
=====================================================
Eso es todo!!!