[c] 00 to 99

Viewer

copydownloadembedprintName: 00 to 99
  1. #define _CRT_SECURE_NO_WARNINGS
  2. #include <stdio.h>
  3.  
  4.  
  5. int main(void)
  6. {
  7.         char digitest[] = { '0','1','2','3','4','5','6','7','8','9' };
  8.        
  9.         for (int i = 0; i < 98 ; i++)
  10.         {
  11.                 for (int j = 0; j < 10; j++)
  12.                 {
  13.                         printf("%c%c\n", digitest[i], digitest[j]);
  14.                 }
  15.         }
  16.  
  17.         return 0;
  18. }

Editor

You can edit this paste and save as new:


File Description
  • 00 to 99
  • Paste Code
  • 30 Nov-2022
  • 289 Bytes
You can Share it: