> Help with c programming assignment?

Help with c programming assignment?

Posted at: 2014-12-18 
We already showed you various ways to do this the last time you asked.

You know you can find the answer in a textbook or on the internet if you look for it.

This is what programming is about, finding answers and solutions by searching and thinking.

The majority of the programmer's time is spent looking through references for answers.

This is how you learn. Not by finding someone else to write your code.

Besides that, you did not even copy the code you were given correctly.

teacher gave us an assignment and he hasn't gone over what he's asking us to do

ps im a beginner

this is what he wants

Write a complete program to counts the whitespace, the digits, the uppercase alphabetics and lowercase alphabetics in the input.

Example :Abbc56764***;;;;

this is what I have so far im probably doing it wrong

what confuses me is reading each character to char he hasn't taught us this

#include

int main()

{

int whitespaces=0;

int digits=0;

int uppercase=0;

int lowercase=0;

char ch;

printf("Enter phrase.\n");

while((ch=get char())!='\n'

if you could please tell me what im doing wrong or how to finish the code (this would be a great help) I would appreciate it thank you for your help