Advertisement
campos20

Untitled

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