Comp Sci 539 Programming in C language, computer science homework help
Comp Sci 539 Programming in C language, computer science homework help
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, Ankri
3/7/17
Lab 2A
Section #3118
This program is going to echoe whichever text file you
put in it, and output it 1 word per line. */
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
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;
}
}
"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.
Discount Code: CIPD30
Click ORDER NOW..


