Easy Code in C language. I’m attaching a code i already have done but i need it done in a different way. Please dont do anything too advanced because the semester just started and my professor only expects to be able to use things we’ve learned in our codes and nothing past it. I’ll post a code for reference. Thanks! The code: /*Mai, Ankri3/7/17Lab 2ASection #3118This program is going to echoe whichever text file youput in it, and output it 1 word per line. */#define _CRT_SECURE_NO_WARNINGS#include
#include
#include
int main(){ char ch1 =0 ,ch2=0; ch1 = getchar(); ch2 = ch1; while (ch1 != EOF) {if ((ch1 >= ‘A’ && ch1 <= ‘Z’) || (ch1 >=’a’ && ch1 <=’z’)) {putchar(ch1);}ch1 = getchar();if ((ch2 < ‘A’ || (ch2 > ‘Z’ && ch2< ‘a’) || (ch2 > ‘z’)) && ((ch1 >= ‘A’ && ch1 <= ‘Z’) || (ch1 >= ‘a’ && ch1 <= ‘z’))){putchar(‘n’);}ch2 = ch1; }}