learning-cc4e

Solution to https://cc4e.com/. If you copy these you're not right in the head.
git clone https://kaka.farm/~git/learning-cc4e
Log | Files | Refs

solution.c (303B)


      1 #include <stdio.h>
      2 int main() {
      3   char a[100], b[100];
      4   int c;
      5   int i;
      6 
      7   printf("Enter two strings\n");
      8 
      9   for (i = 0; (c = getchar()) != '\n'; ++i) {
     10     a[i] = c;
     11   }
     12   a[i++] = '\0';
     13 
     14   for (i = 0; (c = getchar()) != '\n'; ++i) {
     15     b[i] = c;
     16   }
     17   b[i++] = '\0';
     18 
     19   printf("%s & %s\n", a, b);
     20 }