All pastes #149504 Raw Edit

Anonymous

public text v1 · immutable
#149504 ·published 2006-08-25 22:18 UTC
rendered paste body
#include <stdio.h>
#include <stdlib.h>

void encrypt(char *s, int shift);

int main()
{
        int shift;
        char line[80];

        puts("Enter the number of shifts you want to make up or down.");
        scanf("%d", &shift);

        puts("Enter the string to want to shift.");
        fgets(line, sizeof(line), stdin);

        encrypt(line, shift);

        return 0;
}