mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2024-11-09 22:08:58 +01:00
17 lines
293 B
C
17 lines
293 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "character.h"
|
|
#include "input.h"
|
|
#include "string.h"
|
|
|
|
int main() {
|
|
char* string = input();
|
|
int shift;
|
|
scanf("%d", &shift);
|
|
string = string_caesar_cipher(string, shift);
|
|
printf("%s\n", string);
|
|
free(string);
|
|
return EXIT_SUCCESS;
|
|
}
|