Question: Write a program to input a string from the user - use a loop and the getchar() function (similar to the capitalize.c example program we

 Write a program to input a string from the user -

Write a program to input a string from the user - use a loop and the getchar() function (similar to the "capitalize.c" example program we looked at in class). The program should then convert the string to all lowercase letters, and put each word on its own line. Print the new string. Example: Enter a string: This Is A STRING. this is a string. Write a program that will ask the user to enter an integer. The program should check if the 3rd least significant bit of the number (in binary) is a '1' or '0', and tell the user. If the bit was a '0' the program should set the bit to '1'; if the bit was a '1' it should clear the bit to zero. The program should then display the new resulting integer number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!