Assignment | SoloLearn: Learn to code for FREE!

0

Assignment

I am stuck here with my assignment: Need help! Q. This isss a House // this isss a house // thith ithth a houthe Hint: -can't use string s or ss ==> th while(ch!="\n") { ch = getchar(); ch = tolower(ch); putchar(ch); .... and here's my attempt: . . #include<stdio.h> void main() { char ch; while(ch!='\n') { ch = getchar(); ch = tolower(ch); /* if(ch == 's') { ch = 't'; } */ putchar(ch); } return 0; }

c

11/6/2019 3:22:19 PM

Kaisang Tamang

1 Answer

New Answer

0

What error you getting? ->make these changes. 1)Change void main() to int main() . ( remove return 0; ) 2)Must end input by enter key. 3)Un-comment if block