Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
17 views1 page

Lab 3 (String)

The document outlines three tasks for C# programming. The first task involves writing a program to determine and print the length of a user-provided string. The second task requires concatenating two user-input strings, and the third task focuses on extracting a substring based on user-defined starting index and length.

Uploaded by

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

Lab 3 (String)

The document outlines three tasks for C# programming. The first task involves writing a program to determine and print the length of a user-provided string. The second task requires concatenating two user-input strings, and the third task focuses on extracting a substring based on user-defined starting index and length.

Uploaded by

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

1.

Write a C# program that takes a string input from


the user and prints its length.
2. Create a C# program that takes two strings as input
from the user and concatenates them.
3.Write a C# program that extracts a substring from
a given string. The program should take the starting
index and length of the substring as input from the
user, and print the extracted substring. [Hint-
Substring(startIndex, length)

You might also like