Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //IFF - Introdução à Programação
- //Slide - Página 61 - Exercício 4
- #include<stdio.h>
- #include<locale.h>
- void Exibir(int numero){
- int i,vetor[numero];
- for(i=0;i<=numero;i++){
- vetor[i]=i;
- for(int c=0;c<=i;c++){
- printf("%d ",vetor[c]);
- }
- printf("\n");
- }
- }
- int main(){
- setlocale(LC_ALL,"Portuguese");
- int numero;
- printf("Entre com o número objetivo: ");
- scanf("%d",&numero);
- Exibir(numero);
- }
Advertisement
Add Comment
Please, Sign In to add comment