Client Login Register
Calculate Price & Order →
← Back to all articles

Comp Sci 539 Programming in C language, computer science…

Published on December 02, 2026 • Category: Academic
Comp Sci 539 Programming in C language, computer science…

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;

}

}




Share

We only email you; unsubscribe in one click. No address is ever sold.

Ask about study support 💬 WhatsApp 📞

Just now