New game
Download
Get Academic Plan
Share game
Fill in the Blanks
Fill in the Blanks

First C# Program

Integrate it into your platform

You can integrate the game into an LMS compatible with LTI 1.1 or LTI 1.3 such as Canvas, Moodle, or Blackboard. This way, the scores will be automatically saved into the platform’s gradebook.
Download
You have exceeded the maximum number of games you can integrate into Google Classroom with your current Plan.

To integrate as many games as you want in Google Classroom, you need an Academic Plan or a Commercial Plan.

You have exceeded the maximum number of games you can integrate into Microsoft Teams with your current Plan.

To integrate as many games as you want in Microsoft Teams, you need an Academic Plan or a Commercial Plan.

Downloading games is an exclusive feature for users with an Academic Plan or a Commercial Plan.

Get your Academic Plan or your Commercial Plan now and start integrating your games into your LMS, website or blog.

If you wish, you can download a demo game here and test its integration:

First C# Program

Fill in the Blanks

Played 0

About this activity

Practice reading input from the console in C#.

Created by

Poland
This game is a version of

Download the paper version to play

Make your own free game from our game creator
Compete against your friends to see who gets the best score in this game

Top Games

%
Anonymous
Anonymous
%
%
%
You have exceeded the maximum number of games you can print with your current Plan.

To print as many games as you want, you need an Academic Plan or a Commercial Plan.

Print your game
First C# Program
 

Fill in the Blanks

First C# ProgramOnline version

Practice reading input from the console in C#.

by Konspekty Giganci
1

One day , a young programmer turned on his computer and decided to write his first in C# .
At the beginning of the project , he saw the word , which defined the namespace ? the place where his project .
Below it was the program , and then the main , where he could begin programming .

Inside the , he noticed strange symbols ? curly braces ? which surrounded blocks of the program .
He also noticed that each block should be indented to the right to make the code more .

When he added a to display text , the teacher reminded him that at the end of every instruction he must place a ; otherwise , the program would not run .

Finally , Kacper added a few to explain what his code does and proudly ran his first program .

2

When the programming learner what a starting program looks like , he moved on to .
At the very beginning , he wanted the screen to be , so he used the command . Clear ( ) .

Next , he displayed a greeting to the user using the Console . ( ) method ? thanks to it , the following text appeared on the screen :
" Welcome to my first program ! "

Then he wanted to ask for the name of the person using the program .
So he wrote : Console . Write ( ) ? to the text " What is your ? " without moving to a new line .

The user typed in their name , and the program read it using : Console . ( ) .

Now the programmer wanted to say hello , so he used the stored variable of type string to display the message :
" Nice to meet you , [ ] ! "

Before the program ended , he wanted the user to be able to see the result before the closed .
That is why he added Console . ( ) at the end , so the program would wait until the user pressed a key .

Are you sure you want to leave the page?

If you leave the page, you will lose your game progress.