SHARE
TWEET

Untitled

a guest Aug 19th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     for (int i = 1; i <= 100; i++)
  6.     {
  7.         if ((i % 10 == 3 || i % 10 == 6 || i % 10 == 9)
  8.             && (i / 10 == 3 || i / 10 == 6 || i / 10 == 9))
  9.             printf("%6s", "짝짝");
  10.         else if (i % 10 == 3 || i % 10 == 6 || i % 10 == 9)
  11.             printf("%6s", "짝");
  12.         else if (i / 10 == 3 || i / 10 == 6 || i / 10 == 9)
  13.             printf("%6s", "짝");
  14.         else
  15.             printf("%6d", i);
  16.         if (i % 10 == 0)
  17.             printf("\n");
  18.     }
  19. }
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