Robert_Manea

piramida

Nov 7th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. int n,i,j;
  7. printf("Introdu un numar de maxim doua cifre:");
  8. scanf("%d",&n);
  9. if(n<=99)
  10.  
  11. {
  12.  
  13. for(i=1;i<=n;i++)
  14. {
  15.  
  16. for(j=1;j<=i;j++)
  17. printf("%d",j);
  18. printf("\n");
  19. }
  20. }
  21. else
  22. printf("Esti prost citeste mai bine!!!!!!!!!!");
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment