daily pastebin goal
70%
SHARE
TWEET

Untitled

a guest Jan 15th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main() {
  4. int base, altezza;
  5.  
  6. printf("Inserisci la misura dell'altezza del rettangolo \n");
  7. scanf("%d", &altezza);
  8. printf("Inserisci la misura della base del rettangolo \n");
  9. scanf("%d", &base);
  10.  
  11. while (altezza != 0) {
  12.     base = altezza;
  13.     printf("\n");
  14.            while (base != 0) {
  15.            printf("#");
  16.            --base;            }
  17.    --altezza;        }
  18. printf("\n");  
  19. system ("PAUSE");
  20. return 0;
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top