May I suggest you indent your source code? It helps dramatically with source code readability . . .



#include <stdio.h>

int main() {
int input;
int first, second, third, fourth,...