<repo_name>oghie/c<file_sep>/big_pangkat.c
#include <stdio.h>
#define BATAS 16

int main(void) {
  int n;           
  int nilai = 1;     

  printf("\t  n  \t    2^n\n");
  printf("\t================\n");
  for (n=0; n<=BATAS; n++) {
    printf("\t%3d \t %6d\n", n, nilai); 
    nilai = 2*nilai;
  }
  return 0;
}
<file_sep>/simplecipher.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char *argv[]) {
    char cipher[256];
    printf("Enter: ");
    scanf("%[^\n]", cipher);
    char *to = "qwertyuiopasdfghjklmnbvcxz";
    int i;
    for (i = 0; i < strlen(cipher); i++) {
        if (cipher[i] >= 'a' && cipher[i] <= 'z') {
            cipher[i] = to[cipher[i] - 'a'];
        } else if (cipher[i] >= 'A' && cipher[i] <= 'Z') {
            cipher[i] = to[cipher[i] - 'A'] + ('A' - 'a');
        }
    }
    printf("%s\n", cipher);
    return EXIT_SUCCESS;
}
