<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Busracabaciserce on Medium]]></title>
        <description><![CDATA[Stories by Busracabaciserce on Medium]]></description>
        <link>https://medium.com/@busracabaciserce?source=rss-4c09b256846c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jeDTTT9Blvzb2vCvK8Vpjg.jpeg</url>
            <title>Stories by Busracabaciserce on Medium</title>
            <link>https://medium.com/@busracabaciserce?source=rss-4c09b256846c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 12:55:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@busracabaciserce/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ARRAYS in C#]]></title>
            <link>https://medium.com/@busracabaciserce/arrays-in-c-1126bdeb05ea?source=rss-4c09b256846c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1126bdeb05ea</guid>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[arraylist]]></category>
            <category><![CDATA[arrays]]></category>
            <category><![CDATA[beginner-coding]]></category>
            <category><![CDATA[beginner]]></category>
            <dc:creator><![CDATA[Busracabaciserce]]></dc:creator>
            <pubDate>Thu, 03 Feb 2022 16:28:12 GMT</pubDate>
            <atom:updated>2022-02-03T16:28:12.053Z</atom:updated>
            <content:encoded><![CDATA[<p>for beginners</p><p>Arrays are used to hold multiple data of the same type in a single variable rather than in different variables.</p><p>E.g; we want to keep the grades of students in a class in an array.<br>You can think of it as creating a series of cities and keeping more than one city.</p><p>Let’s look at how arrays are defined:</p><p>string[] students;<br>students=new string[15]; // I set how many elements to take in</p><p>int[] examPoints;<br>examPoints=new int[15];</p><p>or</p><p>string[] students= new string[15];<br>int[] examPoints= new int[15];</p><p>The two definitions are the same.</p><p>Let’s take a look at assigning a value to an array.</p><p>example1:<br>int[] examPoints= new int[3];<br>examPoints[0]=85;<br>examPoints[1]=90;<br>examPoints[2]=100;</p><p>example2:<br>string[] students= new string[4];<br>students[0]=”Büşra”;<br>students[1]=”John”;<br>students[2]=”John”;<br>students[3]=”Ali”;</p><p>arrays start at index 0. [0]. index 1st element, [1]. The index is the 2nd element.</p><p>Another method of assigning a value to an array is;</p><p>int[] examPoints={85,90,100};<br>string[] students={“Büşra”,”Ahmet”,”Mehmet”,”Ali”};</p><p>So how do we access the elements of arrays:</p><p>We can access the array element according to the index number of the array.<br>how we do</p><p>int[] examPoints={100,90,100,85};<br>Console.WriteLine(examPoints[0]);<br>string[] students={“Büşra”,”Ahmet”,”Mehmet”,”Ali”};<br>Console.WriteLine(students[0]);</p><p>output:<br>100<br>Büşra</p><p>If I want to make a change in the elements of the array, I can make a new assignment with its index.</p><p>sample:</p><p>Let’s update the 3rd index of the examPoints array we defined earlier, so that the new element is 60.</p><p>The 3rd index corresponds to the 4th element.</p><p>int[] examPoints={100,90,100,85};<br>examPoints[3]=60<br>Console.WriteLine(examPoints[3]);</p><p>output:<br>60</p><p>Let’s make another change in the students array.<br>Let’s replace Büşra in the students array with Süleyman.</p><p>string[] students={“Büşra”,”Ahmet”,”Mehmet”,”Ali”};<br>students[0]=”Süleyman”;<br>Console.WriteLine(students[0]);</p><p>output:<br>Süleyman</p><p>If we want to find out how many elements an array has, we use a property called Length.<br>Let’s see how many elements examPoints is an array.</p><p>int[] examPoints={100,90,100,85};<br>Console.WriteLine(examPoints.Length);</p><p>output:<br>4</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1126bdeb05ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flow-Control in C#]]></title>
            <link>https://medium.com/@busracabaciserce/flow-control-in-c-ddfed3118761?source=rss-4c09b256846c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddfed3118761</guid>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[switch-case]]></category>
            <category><![CDATA[if-else]]></category>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[flow-control-tools]]></category>
            <dc:creator><![CDATA[Busracabaciserce]]></dc:creator>
            <pubDate>Wed, 02 Feb 2022 17:33:00 GMT</pubDate>
            <atom:updated>2022-02-02T17:33:00.751Z</atom:updated>
            <content:encoded><![CDATA[<p>for beginners</p><p>if-else:<br>If we want the program to change direction depending on the condition or conditions, we can use if-else. <br>We can generate conditions using relational and/or logical operators.</p><p>E.g ; We will do the subtraction with the two numbers we get from the user. We do not want to return negative results.<br>So we’ll add a control. Is the first number entered greater than the second number? if it is big we will do subtraction,<br>if not we will send a warning message. Let’s code this scenario.</p><p>Console.WriteLine(“Enter the first number: “);<br>int number1 =Convert.ToInt32(Console.ReadLine());<br>Console.WriteLine(“Enter the second number: “);<br>int number2 = Convert.ToInt32(Console.ReadLine());</p><p>if (number1&gt;number2) //1. condition<br>{<br> Console.WriteLine(“Result: {0}”,number1-number2);<br>}<br>else if (number2&gt;number1)//2. condition<br>{<br> Console.WriteLine(“The first number must be greater than the second.”);<br>}<br>Console.ReadKey();</p><p>Let’s look at the outputs of both conditions.<br>// When the 1.condition returns true<br>Enter the first number:<br>10<br>Enter the second number:<br>5<br>Result: 5</p><p>// When the 2.condition returns true<br>Enter the first number:<br>5<br>Enter the second number:<br>10<br>The first number must be greater than the second number.</p><p>Considering the above example, if the program actually reads the if (number1&gt;number2) line and returns true, the curly braces<br>reads the codes inside. If it returns false, it moves to the next control expression without the parentheses.<br>ie the else if (number2&gt;number1) line. If the answer is false here, for example, the two numbers entered are equal.<br>We need to check that too. In this scenario, a forgotten condition may not cause a problem, but as our coder<br>We need to consider every condition. then we need to add another if else to the above code or the first condition<br>Editing it as if (number1&gt;=number2) will solve the problem.<br>Instead of increasing the code block, it is desirable to solve the problem in the shortest possible way (provided that it is clean code).</p><p>if is a control mechanism that we use and will use a lot.</p><p>Many scenarios can be produced. Let’s do one more example.</p><p>Calculating our average by taking our midterm and final grades and passing if the average is equal to or greater than 60,<br>If it is less than 60, write it down. (40% of the visa, 60% of the final will be taken.)</p><p>Console.WriteLine(“Enter your midterm grade: “);<br>int midterm =Convert.ToInt32(Console.ReadLine());<br>Console.WriteLine(“Enter your final grade: “);<br>int final = Convert.ToInt32(Console.ReadLine());<br>//We got the midterm and final grades, it’s time to calculate the average<br>int avg = (visa * 40 / 100 )+ (final * 60 / 100);</p><p>//We have the average grade. We will check the Pass/Fail status.<br>if (avg &gt;=60)<br> Console.WriteLine(“Congratulations, you passed. Your grade: {0}”,avg);<br>else if(avg&lt;60)<br> Console.WriteLine(“You failed the course..Your grade: {0} “,avg);</p><p>Console.ReadKey();</p><p>Let’s check the outputs.<br>//When 1.condition returns true<br>Enter your visa note:<br>65<br>Enter your final grade:<br>70<br>Congratulations, you passed. Your grade: 68</p><p>// When 2.condition returns true<br>Enter your midterm note:<br>45<br>Enter your final grade:<br>65<br>You failed the course. Your grade: 57</p><p>switch-case :<br> If the control blocks we will create with if will become complex, our code will be more understandable and it looks clean so that<br>We prefer the switch-case structure.</p><p>The variable required for the condition is entered in the switch statement.<br>The condition is checked in the case statement.<br>Break command breaks the loop.<br>The default command can also be written optionally. What will happen if something happens outside of the possibilities given in the case<br>We write by default.</p><p>the syntax is as follows:</p><p>swicth(conditionVariable)<br>{<br>case value:<br> transactions;<br> break;<br>case value:<br> transactions;<br> break;<br>.<br>.<br>.<br>default:<br> actions to be taken in case the given conditions are not met;<br> break;<br>}</p><p>Got the condition, checked the cases and did the operation whichever matched it and exited the switch-case with break.<br>If the condition is not suitable for one of the cases, it performed the default operations and exited the switch-case with break.</p><p>Example: Let’s write the program that brings the day in Monday-Sunday order with the switch-case, according to the number entered from the keyboard between 1–7.</p><p>Console.WriteLine(“Please enter a number between 1–7: “);<br>int day = Convert.ToInt32(Console.ReadLine());<br>switch(day)<br>{<br> case 1:<br> Console.WriteLine(“Monday”);<br> break;<br> case 2:<br> Console.WriteLine(“Tuesday”);<br> break;<br> case 3:<br> Console.WriteLine(“Wednesday”);<br> break;<br> case 4:<br> Console.WriteLine(“Thursday”);<br> break;<br> case 5:<br> Console.WriteLine(“Friday”);<br> break;<br> case 6:<br> Console.WriteLine(“Saturday”);<br> break;<br> case 7:<br> Console.WriteLine(“Sunday”);<br> break;<br> default:<br> Console.WriteLine(“There are 7 days in a week. You entered incorrectly.”);<br> break;<br>}<br>Console.ReadKey();</p><p>Output:<br>Please enter a number from 1–7:<br>7 // When he came to case 7, there was a match and he saw the code in case 7<br>Sunday // printed and exited the loop.</p><p>Output2:<br>Please enter a number from 1–7:<br>8 // checked all cases and dropped to default. saw the default code.<br>There are 7 days a week. You have entered incorrectly. // printed and exited the loop.</p><p>important:<br>We can do everything with switch-case ,we do with if-else . But everything we do with if-else We can’t do it with the switch-case structure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddfed3118761" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Arithmetic Operators:
As in almost every language, there are arithmetic operators to be used in…]]></title>
            <link>https://medium.com/@busracabaciserce/arithmetic-operators-as-in-almost-every-language-there-are-arithmetic-operators-to-be-used-in-5fec3e8446eb?source=rss-4c09b256846c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fec3e8446eb</guid>
            <category><![CDATA[operators]]></category>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[logicaloperators]]></category>
            <category><![CDATA[arithmetic-operators]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <dc:creator><![CDATA[Busracabaciserce]]></dc:creator>
            <pubDate>Mon, 31 Jan 2022 20:14:42 GMT</pubDate>
            <atom:updated>2022-01-31T20:25:13.955Z</atom:updated>
            <content:encoded><![CDATA[<h3>Operators in C#</h3><p>for beginners</p><p><em>Arithmetic Operators:<br>As in almost every language, there are arithmetic operators to be used in arithmetic operations.</em></p><p><em>Operator Description<br>+ Addition<br>- Subtraction<br>* Multiplication<br>/ Division<br>% modding<br>++ 1 increment<br> — 1 decrement</em></p><p>Let’s take a look at its usage:</p><p>int number1 = 10;<br>int number2 = 5;<br> Console.WriteLine(“Total {0}”,number1 + number2);<br> Console.WriteLine(“Gap {0}”, number1 — number2);<br> Console.WriteLine(“Multiply {0}”, number1 * number2);<br> Console.WriteLine(“Division Result {0}”, number1 / number2);<br> Console.WriteLine(“Let’s modulate number1 with 2= {0}”, number1%2);<br> Console.WriteLine(“Increment number2 by 1= {0}”,++number2);<br> Console.WriteLine(“Decrease number1 by 1={0}”, — number1);<br> Console.ReadKey();</p><p>output:</p><p>Total 15<br>Gap 5<br>Multiply 50<br>Division Result 2<br>Let’s modulate number1 with 2 = 0<br>Increment number2 by 1 = 6<br>Decrease number1 by 1=9</p><p>We generally use the ++ and — operators in loops.</p><p><em>Logical Operators<br>and &amp;&amp;<br>or ||</em></p><p><em>AND &amp;&amp; operator:<br>It compares two boolean expressions and returns true if both expressions are true and false otherwise.</em></p><p><em>OR || Operator:<br>Again, two boolean expressions are compared, but here if one of the two expressions is true, the result will be true.<br>If both statements are false, the result is false.</em></p><p>Sample:<br> int x = 10;<br> int y = 5;<br> int z = 7;<br> int w = 8;<br> Console.WriteLine(x &gt; y &amp;&amp; w &gt; z); // true &amp;&amp; true<br> Console.WriteLine(x &lt; y &amp;&amp; w &gt; z); // false &amp;&amp; true<br> Console.WriteLine(x &lt; y || w &gt; z); // false || true<br> Console.WriteLine( x &gt; w || z &gt; y); // true || true<br> Console.ReadKey();</p><p>Output:<br>true<br>false<br>true<br>true</p><p><em>Relational Operators</em></p><p><em>We use it when comparing the values ​​of two variables. It uses a boolean dym when comparing and returns<br>is true or false.</em></p><p><em>Operator Description<br>== Equals<br>!= Not Equal<br>&gt; Is it big<br>&lt; Is it small<br>&gt;= Is it greater than or equal to<br>&lt;= Is less than or equal to</em></p><p>Sample:<br>int x = 6;<br> int y = 7;<br> x == y; //False<br> x != y; //True<br> x &gt;= y; //False<br> x &lt;= y; //True<br> x &lt; y; //True<br> x &gt; y; //False</p><p><em>Assignment Operators</em></p><p><em>Operator Description<br>= Assigns the value on the right to the variable on the left.<br>+= Adds the right to the left, assigns the result to the left.<br>-= Subtracts the right from the left and assigns the result to the left.<br>*= Multiplies the left by the right, assigns the result to the left.<br>/= Divides the left by the right, assigns the result to the left.<br>%= Takes the mode of the left and right and assigns the result to the left.</em></p><p>Sample:<br>int x = 10;<br> int y = 5;<br> int z = 7;<br> int w = 8;<br> int result;</p><p>x += y;<br> result = x;<br> Console.WriteLine(result);<br> w -= z;<br> result = w;<br> Console.WriteLine(result);<br> x *= z;<br> result = x;<br> Console.WriteLine(result);<br> x /= y;<br> result = x;<br> Console.WriteLine(result);<br> x %= y;<br> result = x;<br> Console.WriteLine(result);</p><p>Console.ReadKey();</p><p>Output:<br>15 // x+y ie 10+5. x is now 15.<br>1 // w-z ie 8–7. w is now 1.<br>105// x*z ie 15*7. x is now 105.<br>21 // x/y ie 105/5. x is now 21.<br>1 // x%y ie 21%1. x is now 1.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fec3e8446eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[C# Data Types and Variable Definition]]></title>
            <link>https://medium.com/@busracabaciserce/c-data-types-and-variable-definition-ca21081037d7?source=rss-4c09b256846c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca21081037d7</guid>
            <dc:creator><![CDATA[Busracabaciserce]]></dc:creator>
            <pubDate>Mon, 31 Jan 2022 13:34:34 GMT</pubDate>
            <atom:updated>2022-01-31T13:34:34.997Z</atom:updated>
            <content:encoded><![CDATA[<p>for beginners</p><p>Data types are actually the property that may differ according to the variable we will define.<br>That is, whether we are going to enter a number, a word, a letter or a set, we first determine it. each type and<br>We choose a data type according to the size of the data so that we can do the operation we want accordingly.</p><p>Data types in C#</p><p>byte : Its length is 1 byte, it takes a value between 0 and 255.<br>sbyte : Its length is 1 byte, it takes values ​​between -128 and 127.<br>short : Its length is 2 bytes, it takes values ​​between -32768 and 32767.<br>ushort : Its length is 2 bytes, it takes values ​​between 0 and 65535.<br>int : Its length is 4 bytes, it takes values ​​between -2,147,483,648 and 2,147,483,648.<br>uint : Its length is 4 bytes, it takes values ​​between 0 and 4,294,967,295.<br>long : Its length is 8 bytes, it takes values ​​between -1020 and 1020.<br>ulong : Its length is 8 bytes, it takes a value between 0 and 2 x 1020.<br>float : Its length is 4 bytes, it takes values ​​between 1.5 x 10–45 and 3.4 x 1038.<br>double : Its length is 8 bytes, it takes values ​​between 5.0 x 10–324 and 1.7 x 10308.<br>decimal : Its length is 12 bytes, it takes values ​​between ±1.0 x 10–28 and ±7.9 x 1028.<br>char : 2 bytes in length, includes all unicode characters.<br>string : It is used to store values ​​such as a single character, word or sentence.<br>boolean: It is the type that holds true — false values.</p><p>We need to carefully enter the type of data we want to enter, because as we can see, the type size brings with it.</p><p>If we come to the part of how the variable is defined:</p><p>datatype variableName;<br>or<br>datatype variableName= ;<br> <br>sample:<br>int number; or int number=5;<br>string sentence; or string sentence=”This variable is a string expression.”;</p><p>The value I gave on the right side of Equals is now the value of the variable I named.<br>The content of my number variable is 5 and the content of my sentence variable is “This variable is a string expression.” has been.</p><p>Things to consider when defining variables:<br>1-Variable names cannot start with numbers.<br>2-If variable names consist of more than one word, they should be written without spaces.<br>3- Since C# language is case sensitive, variable names should be given accordingly.<br>So char a; and char A; are different variables.<br>4-Special characters are not used in variable names, the only exception is underscore(_).<br>5-C# keywords are not used as variable names.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca21081037d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>