Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- // For. Repeticao
- // Autor: Alexandre Campos
- int main()
- {
- // Declaracao das variaveis
- int numero;
- // Entrada de dados
- printf("Digite o numero de repeticoes\n");
- scanf("%d", &numero);
- // A variavel i comeca em 0, vai ate n (numero digitado),
- // incrementa de um em um (i++)
- for (int i=0; i<numero; i++){
- // Exibicao na tela
- printf("%d: PROGRAMA\n", i+1);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement