Advertisement
Robert_Manea

piramida2

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