Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Comments | Getting Started
C# Basics
course content

Conteúdo do Curso

C# Basics

C# Basics

1. Getting Started
2. Dealing with Data Types
3. Control Structures
4. Loops
5. Arrays
6. Methods

Challenge: Comments

The following program prints numbers from 1 to 10. Comment out the lines that print odd numbers.

Note: Use single-line comments.

cs

main

  1. Single-Line comments can be added using double-slash (//);
  2. Even numbers are those which can be divided into two equal parts or in other words those numbers which are divisible by 2. For-example: 2, 4, 6 etc. Odd numbers are the opposite of even numbers for-example: 1, 3, 5 etc.
cs

main

Tudo estava claro?

Seção 1. Capítulo 6
We're sorry to hear that something went wrong. What happened?
some-alt