Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void main(){
  4. int n1, n2, n3, n4, n5, res;
  5. printf("Introduce el primer numero: ");
  6. scanf("%d", &n1);
  7. printf("Introduce el segundo numero: ");
  8. scanf("%d", &n2);
  9. printf("Introduce el tercer numero: ");
  10. scanf("%d", &n3);
  11. printf("Introduce el cuarto numero: ");
  12. scanf("%d", &n4);
  13. printf("Introduce el quinto numero: ");
  14. scanf("%d", &n5);
  15. res= n1+n2+n3+n4+n5;
  16. printf("El resultat es: %d", res);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement