Write a C program to implement the following requirement: Input: The program will read from the standard input any text

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a C program to implement the following requirement: Input: The program will read from the standard input any text

Post by answerhappygod »

Write A C Program To Implement The Following Requirement Input The Program Will Read From The Standard Input Any Text 1
Write A C Program To Implement The Following Requirement Input The Program Will Read From The Standard Input Any Text 1 (66.11 KiB) Viewed 17 times
Write a C program to implement the following requirement: Input: The program will read from the standard input any text up to 10,000 characters. Output: The program will print to the standard output the followings: First, the number of words in the text. A word is a string without whitespaces (space/tab/new line character). Then, the reversed of the input text such that all upper-case alphabet characters (A-Z) will be converted to lower-case. Note: If the input text is empty or there is no word in the input text, the program must print the empty string to stdout. SAMPLE INPUT 1 Hello world! 123 SAMPLE OUTPUT 1 3 321 !dlrow olleh SAMPLE INPUT 2 <empty> SAMPLE OUTPUT 2 <empty> SAMPLE INPUT 3 This is the 1ST line. This is the 2ND line. SAMPLE OUTPUT 3 10 .enil dn2 eht si siht .enil ts1 eht si siht
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply