<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Fawole Ajibola Lukman</title>
    <description>The latest articles on Forem by Fawole Ajibola Lukman (@jibola2588).</description>
    <link>https://forem.com/jibola2588</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3932082%2F50997a77-f42a-4d31-a15a-a22a27b55cfd.png</url>
      <title>Forem: Fawole Ajibola Lukman</title>
      <link>https://forem.com/jibola2588</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/jibola2588"/>
    <language>en</language>
    <item>
      <title>Day 1 learning C#: variables and data types</title>
      <dc:creator>Fawole Ajibola Lukman</dc:creator>
      <pubDate>Sat, 16 May 2026 02:22:41 +0000</pubDate>
      <link>https://forem.com/jibola2588/day-1-learning-c-variables-and-data-types-3720</link>
      <guid>https://forem.com/jibola2588/day-1-learning-c-variables-and-data-types-3720</guid>
      <description>&lt;p&gt;&lt;strong&gt;Statements in C#&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A statement is a complete instruction in C#.&lt;br&gt;
The semicolon (;) tells the compiler that you’ve finished writing a command.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8i3hefoknbh7nkab03mq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8i3hefoknbh7nkab03mq.png" alt="Example of a complete C# statement" width="800" height="154"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Difference Between Console.WriteLine() and Console.Write() in C#&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Console.WriteLine() prints a message to the console and moves the cursor to a new line afterward, similar to pressing Enter on the keyboard.&lt;/p&gt;

&lt;p&gt;Console.Write() prints output on the same line without moving to a new line.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcavdkaypjxr24mzh6dye.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcavdkaypjxr24mzh6dye.png" alt="Screenshot demonstrating the difference between Console.Write() and Console.WriteLine() in C#" width="800" height="343"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Common Mistakes New C# Programmers Make&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Typing console instead of Console.&lt;br&gt;
Using a comma instead of a period between Console and WriteLine.&lt;br&gt;
Forgetting double quotation marks (" ").&lt;br&gt;
Using single quotation marks (' ') for strings instead of double quotation marks.&lt;br&gt;
Forgetting the semicolon (;) at the end of a statement.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Literals in C#&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A literal is a constant value that does not change during program execution.&lt;/p&gt;

&lt;p&gt;"Hello"    // string literal&lt;br&gt;
10         // integer literal&lt;br&gt;
true       // boolean literal&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Common Data Types in C#&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;string --&amp;gt; stores words, phrases, or text.&lt;br&gt;
char --&amp;gt; stores a single character.&lt;br&gt;
int --&amp;gt; stores whole numbers.&lt;br&gt;
decimal --&amp;gt; stores numbers with decimal points.&lt;br&gt;
bool --&amp;gt; stores true or false values.&lt;/p&gt;




&lt;h6&gt;
  
  
  Today I learnt the basics of statements, literals, and data types in C#. I also understood the difference between Console.Write() and Console.WriteLine(). I used the Microsoft Learn documentation.
&lt;/h6&gt;

</description>
      <category>programming</category>
      <category>beginners</category>
      <category>csharp</category>
      <category>microsoft</category>
    </item>
  </channel>
</rss>
