0% found this document useful (0 votes)
13 views

Assignment

The document provides 4 programming tasks: print a string in reverse, print the first 3 characters of a string in title case, repeat the last character of a string 5 times, and replace the 3rd character of a string with a # symbol.

Uploaded by

Ayushi Jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Assignment

The document provides 4 programming tasks: print a string in reverse, print the first 3 characters of a string in title case, repeat the last character of a string 5 times, and replace the 3rd character of a string with a # symbol.

Uploaded by

Ayushi Jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

Write a program to ask the user enter a string and print the string in reverse
CASE.

2. Write a program to ask the user enter a string and print the first 3 characters
in title case.

3. Write a program to ask the user enter a string and repeat the last character 5
times.

4. Write a program to ask the user enter a string and replace the 3rd character
with a ‘#’ symbol.

You might also like