Advertisement
campos20

Untitled

May 10th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. // Contador de 0 ate o numero digitado
  5. // Autor: Alexandre Campos
  6.  
  7. int main()
  8. {
  9. // Declaracao
  10. int n;
  11.  
  12. // Entrada de dados
  13. printf("Digite o numero\n");
  14. scanf("%d", &n);
  15.  
  16. // Exibicao
  17. for (int i=0; i<=n; i++){
  18. printf("Contador: %d\n", i);
  19. }
  20.  
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement