© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
R. VystavělC# Programming for Absolute Beginnershttps://doi.org/10.1007/978-1-4842-7147-6_8

8. Input

Radek Vystavěl1  
(1)
Ondřejov, Czech Republic
 

Up to now, all of your programs have been manipulating data (numbers, text, and so on) that was either fixed directly in source code or drawn from the operating system (dates, random numbers, and so on). Typically, programs get their data from the user, which is what you will learn about in this chapter.

Text Input

You will start your study of input with the simplest possible case.

Task

You will write a program that accepts a single line of text from the user and immediately repeats the inputted text to the output ...

Get C# Programming for Absolute Beginners: Learn to Think Like a Programmer and Start Writing Code now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.