SHARE
TWEET

Untitled

a guest Apr 19th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void) {
  5.     int index = 0, contador;
  6.     char letras[5] = "Joao";
  7.     int string_size = 5;
  8.     int repeat = 5;
  9.  
  10.     printf("\n");
  11.     for (contador = 0; contador < 3; contador++) {
  12.         int i;
  13.         for(i = 0; i < string_size; i++) {
  14.             int j;
  15.             for(j = 0; j < repeat; j++) {
  16.                 printf("%c", letras[i]);
  17.             }
  18.         }
  19.         printf("\n");
  20.     }
  21.     printf("\n");
  22.     return 0;
  23. }
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