Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- //Dichiaro le costanti
- int x,i,k;
- char c='*';
- //Prelevo i dati
- printf("Inserire un numero: \n");
- scanf("%d", &x);
- //Stampo il risultato
- for(i=0;i<x;i++){
- printf("\n");
- for(k=0;k<=i;k++){
- printf("%c", c);
- }
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment