Computer Science, asked by arpita1322, 4 months ago

write a program in blue j to accept a string which includes some special characters like punctuation mark viz apostrophe,full stop,comma,semicolon,etc and display the string in reverse order without using punctuation mark​.... pls someone help me out

Answers

Answered by Anonymous
4

Answer:

The input in this question will consist of a number of lines of English text consisting of the letters of the English alphabets, the punctuation marks (‘) apostrophe, (.) full stop, (,) comma , (;) semicolon , (:) colon and white space. Write a program to print the words of the input in reverse order without any punctuation marks other than blanks.

For example, Consider the following input text:

INPUT:

Enter number of sentences: 2

Enter the sentences:

This is a sample piece of text to illustrate this question

if you are smart you will solve this right.

OUTPUT: right this solve will you smart are you if question this illustrate to text of piece sample a is this

Explanation:

Similar questions