C# Programming Exercises - Beginner Exercises

Exercise 1

Write some method that takes in the age of a person and displays it on screen, the output of the program should be 'You are {age} years old.'

Exercise 2

Write an interative method that displays the asterisk pattern below: ***** **** *** ** *

Exercise 3

Write a method that declares an integer variable, one float variable, and one string variable. The method should take in a Array of type objects with the following value 5, 4.3, "String" and associate the objects to the correct variables and then display them on screen.

submit to reddit

Jon D Jones

Software Architect, Programmer and Technologist Jon Jones is founder and CEO of London-based tech firm Digital Prompt. He has been working in the field for nearly a decade, specializing in new technologies and technical solution research in the web business. A passionate blogger by heart , speaker & consultant from England.. always on the hunt for the next challenge

Back to top