Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int a,c=0;
- char opc;
- int main (){
- do{
- printf("Introduzca numero cualquiera\n");
- scanf("%d",&a);
- c=c+a;
- fflush(stdin);
- printf("Desea introducir mas? S= si, N= no\n");
- scanf("%c",&opc);
- }while(opc!='N');
- printf("\nLa suma de estos numeros es de: %d",c);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment