Caesar Cipher

I did a search before joining here but couldn't find anything relating to what I'm working on...
I have to make a Caesar cipher program that enters a phrase (using getchar), then enters the shift amount and outputs the encrypted phrase. I need to make sure it "wraps around" as if the input letter was z, and shift was 3, it would turn into c. I also need to make sure to only shift letters, not punctuation.

I have no idea how to even start basically, that's the only guidance I've got. We haven't gotten to strings so I have to use getchar somehow, or an array but I'm not sure how I would do that.

Usually Caesar Cipher is also used as an intro to cryptography and modular arithmetic, so I'm a little bit surprised that you couldn't find anything with just the keywords "Caesar Cipher" in your favourite search engine.

You must be VERY unlucky in your search. They're all over, so you may want to try again.

You should be using a char array[]. You can use getchar() to get the user's char, and then put it into the array. I strongly recommend you use a char array. You'll find it quite difficult to work with separate char variables in the program.