<?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>DEV Community: Tania</title>
    <description>The latest articles on DEV Community by Tania (@tania585).</description>
    <link>https://dev.to/tania585</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%2F646223%2F8d6b646a-72cf-45fc-b0c1-418860e0781a.jpeg</url>
      <title>DEV Community: Tania</title>
      <link>https://dev.to/tania585</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tania585"/>
    <language>en</language>
    <item>
      <title>How to check if all elements in a array are equal</title>
      <dc:creator>Tania</dc:creator>
      <pubDate>Tue, 10 Aug 2021 07:49:47 +0000</pubDate>
      <link>https://dev.to/tania585/how-to-check-if-all-elements-in-a-array-are-equal-554</link>
      <guid>https://dev.to/tania585/how-to-check-if-all-elements-in-a-array-are-equal-554</guid>
      <description>&lt;p&gt;&lt;strong&gt;An array&lt;/strong&gt; is a very simple and important topic. In programming, if you are creating a program, an array makes our task very easy.  Like other variables, arrays also need to be introduced. Suppose you have variables of the same data type, then you find it very difficult to name them separately. We need to do this.  We need a suitable method in which we can easily use the same type of data type. An array is provided to solve this problem. With the help of this we can use different suffixes or numbers for the same variable name.  Used to save different items by counting. In programming language it is called subscript .&lt;/p&gt;

&lt;p&gt;Today we will create two arrays to see if they are equal or not.  It is important that the data type and length of the array should be the same if the data is in a character or in a float or a string.  If the first index has value kodlogs and the second index has the same value then they will be equal otherwise they will not be. Let's take two arrays then we use loop or solve it with the help of conditional operator so that you can  Visit our website kodlogs to get more information like this.&lt;/p&gt;

&lt;p&gt;Example:-&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Input  : arr1[] = {1, 2, 5, 4, 0};
         arr2[] = {2, 4, 5, 0, 1}; 
O/P : Yes

Input  : arr1[] = {1, 2, 5, 4, 0, 2, 1};
         arr2[] = {2, 4, 5, 0, 1, 1, 2}; 
O/P : Yes

Input : arr1[] = {1, 7, 1};
        arr2[] = {7, 7, 1};
O/P: No
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>code</category>
      <category>c</category>
      <category>cpp</category>
    </item>
    <item>
      <title>Which of these class is superclass of every class in java</title>
      <dc:creator>Tania</dc:creator>
      <pubDate>Sat, 24 Jul 2021 05:52:28 +0000</pubDate>
      <link>https://dev.to/tania585/which-of-these-class-is-superclass-of-every-class-in-java-2g91</link>
      <guid>https://dev.to/tania585/which-of-these-class-is-superclass-of-every-class-in-java-2g91</guid>
      <description>&lt;h1&gt;
  
  
  Overview classes in java:
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;Today&lt;/strong&gt; we know about classes and superclass in Java. You may have heard about classes and objects while learning programming language.  Many students know a lot about this. And some students are still some students who understand Java as a very difficult programming language and they do not understand the objects and classes at all. Today I will explain to you in very simple words.To create an object, it is necessary to first create its general form with the help of class keywords. Once you have created the structure of the class, then you can create an object of its class type.  It's just like you create a structure type structure variable. If you want to call a class member function from within the program that is not part of the class, you first need to name the object and dot operator.  Object Oriented Programming Methods Before you start your program, you should have a thorough knowledge of the object used in it and the factors above it. Let's practice and try to understand more.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.Superclass of every class in Java?&lt;/strong&gt;&lt;br&gt;
a) String class&lt;br&gt;
b) Object class&lt;br&gt;
c) Abstract class&lt;br&gt;
d) ArrayList class&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class Test {
   public static void main(String args[]){
      Test obj = new Test();
      Class cls = obj.getClass().getSuperclass();
      System.out.println(cls.getName());
   }
}     

          Output will be:
           Java.lang.object
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>java</category>
      <category>programming</category>
    </item>
    <item>
      <title>How to display uploaded file in html using JavaScript</title>
      <dc:creator>Tania</dc:creator>
      <pubDate>Fri, 23 Jul 2021 06:25:16 +0000</pubDate>
      <link>https://dev.to/tania585/how-to-display-uploaded-file-in-html-using-javascript-451c</link>
      <guid>https://dev.to/tania585/how-to-display-uploaded-file-in-html-using-javascript-451c</guid>
      <description>&lt;p&gt;&lt;strong&gt;How to display uploaded file in html using JavaScript&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Today we will see how to upload files in html using JavaScript. You must know about html.  html is a markup language from which you can design the content of a website and manage the layout of the website in css. And then javascript is used for programming the website. javascript is completely HTML code.  Can change. If there is any file of JavaScript, we can change it in HTML. There are many other programming languages ​​but JavaScript is very easy to learn. A developer should have a complete knowledge of JavaScript.  They are creating a website. Php which is server site language but Java browser site. Where client is browsing the website. JavaScript can communicate in many languages. It does not require compiler.  JavaScript only runs in browsers. In JavaScript you can also work with databases. Let's see some examples.&lt;br&gt;
Example code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;input type="file"  accept="image/*" name="image" id="file"  onchange="loadFile(event)" style="display: none;"&amp;gt;&amp;lt;/p&amp;gt;
 for="file" style="cursor: pointer;"&amp;gt;Upload Image&amp;lt;/label&amp;gt;&amp;lt;/p&amp;gt;
&amp;lt;p&amp;gt;&amp;lt;img id="Output" width="100" /&amp;gt;&amp;lt;/p&amp;gt;

&amp;lt;script&amp;gt;
var loadFile = function(event) {
    var image = document.getElementById('Output');
    image.src = URL.createObjectURL(event.target.files[0]);
};
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>java</category>
      <category>html</category>
    </item>
    <item>
      <title>Natural Language Processing with python source code</title>
      <dc:creator>Tania</dc:creator>
      <pubDate>Sat, 10 Jul 2021 05:02:08 +0000</pubDate>
      <link>https://dev.to/tania585/natural-language-processing-with-python-source-code-558l</link>
      <guid>https://dev.to/tania585/natural-language-processing-with-python-source-code-558l</guid>
      <description>&lt;p&gt;&lt;strong&gt;Today&lt;/strong&gt;&lt;br&gt;
we know about object and classes in our website kodlogs. C # is a powerful language which has been used for many years to create many important programs. But the problem is that as time went on,  And the size of the program got bigger. Thus, managing files became very difficult and impossible. In 1980, Bjarne Stroustrup discussed this issue and made some additions to the C language. This addition was initially called C with classes.  Was from the United States. Now let's talk about what objects are. The main feature or thing in programming is the concept of object. An object is a logical thing inside programming. It contains your personal data and code to work on that data.  Now let's talk about classes. In order to create an object, it is necessary to first create its general form with the help of the keyword of the class. The class is very similar to the structure.Everything in C# is related with training and objects, alongside with its attributes and methods. For example: in actual life, a automobile is an object. The auto has attributes, such as weight and color, and methods, such as power and brake.See the following code example to understand more.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
class Car 
{
  string color = "green ";

  static void Main(string[] args)
  {
    Car myObj = new Car();
    Console.WriteLine(myObj.color);
  }

              O/P
green

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>c</category>
    </item>
    <item>
      <title>How to append to the beginning of a list python</title>
      <dc:creator>Tania</dc:creator>
      <pubDate>Thu, 01 Jul 2021 20:30:30 +0000</pubDate>
      <link>https://dev.to/tania585/how-to-append-to-the-beginning-of-a-list-python-4led</link>
      <guid>https://dev.to/tania585/how-to-append-to-the-beginning-of-a-list-python-4led</guid>
      <description>&lt;p&gt;Append ( )  in python&lt;br&gt;
Anyone who is learning programming will have seen the append function in most of the programs. Most of the students will not know about it and will know more about this function. Append means that we have an element in our list.  The function of the append list is the value that we want to add at the end of the list, so we will use the append function. You must keep in mind that the append function should only be added at the end.  Will never do in the beginning. This means that we can make the list bigger and longer than the end.&lt;/p&gt;

&lt;p&gt;There are other similar functions like insert, and extends and add functions, their function is also similar to append function.  Yes, there is only a slight difference. Extend lets the element of one list be added to the element of another list. Sometimes there are multiple elements. And if they have to be added to the list, then I will use the extend method.  Does this by adding one to the end element and having it reprinted. Most use the append function.  When we start programming a list, it is used everywhere.&lt;/p&gt;

&lt;p&gt;The syntax for using it is something like:&lt;/p&gt;

&lt;p&gt;list.append (item).&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Python artificial intelligence projects for beginners</title>
      <dc:creator>Tania</dc:creator>
      <pubDate>Tue, 29 Jun 2021 23:22:27 +0000</pubDate>
      <link>https://dev.to/tania585/python-artificial-intelligence-projects-for-beginners-3ehe</link>
      <guid>https://dev.to/tania585/python-artificial-intelligence-projects-for-beginners-3ehe</guid>
      <description>&lt;p&gt;Contents&lt;br&gt;
Overview&lt;br&gt;
AI project in python&lt;br&gt;
&lt;strong&gt;Overview&lt;/strong&gt; &lt;br&gt;
One of the things you must have to learn Python is time. We are using artificial intelligence to change this world. And to get this support we need to know programming language and  It is important to learn the language because the computer understands the language of 0's and 1's. We have to talk to the computer first to become very proficient.  All the codes in the English language are very simple. Scientists have created this Python language because you can understand English well and all its codes are in English.  This is a language that even a small child can learn in 3 months. There are free courses from Google that give you a lot of information about Artificial Intelligence. Nowadays it is being taught in schools, colleges and institutions. This language is free.  It works. If you want to create a website, it has a lot of libraries. It has a lot of developers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ts5xgmRH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o968sx7cym4a8l5c9uiq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ts5xgmRH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o968sx7cym4a8l5c9uiq.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI project in python&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Build a prediction model using decision trees and random forest.&lt;/li&gt;
&lt;li&gt;Use neural( Networks),( decision trees, )and random forests for classification.&lt;/li&gt;
&lt;li&gt;Detect YouTube comment spam with a bag-of-words and random forest.&lt;/li&gt;
&lt;li&gt;Identify handwritten, Mathematical symbols with convolutional neural Network.&lt;/li&gt;
&lt;li&gt;revise the bird species identifier to use image.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--v1F9QhPq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6xslkiy9of30z9vvr6qg.jpg" alt="Alt Text"&gt;
Friends, when computers were made, the main purpose of making them was to reduce the worries of human beings. What we used to do with our hands, now we don't have to work with our hands. Now all our work is done by our computers.  We can say a program that automatically thinks about what to do. Just like our brain controls the whole body, robots look like plastic and steel, but they have such code or program inside them.  There are robots that control the house. Nowadays robots are being made to clean the house. And a car has also been made that travels with the help of Google map. It takes you to your original location.  There is no need for a driver in such a car. Similarly, many diseases are also known. Similarly, Google, YouTube, Amazon all work on artificial intelligence.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--RJG_6pW2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mhe8lsog3dtu85hznqvx.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--RJG_6pW2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mhe8lsog3dtu85hznqvx.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>pyhton</category>
    </item>
    <item>
      <title>How to make a table in C++</title>
      <dc:creator>Tania</dc:creator>
      <pubDate>Sat, 26 Jun 2021 01:09:20 +0000</pubDate>
      <link>https://dev.to/tania585/how-to-make-a-table-in-c-1i6f</link>
      <guid>https://dev.to/tania585/how-to-make-a-table-in-c-1i6f</guid>
      <description>&lt;p&gt;&lt;strong&gt;Content&lt;/strong&gt;&lt;br&gt;
How to create a multiplication  table in c++&lt;br&gt;
Print Table of any number in C++&lt;br&gt;
Concept&lt;br&gt;
Explanation of Program&lt;br&gt;
Summary &lt;br&gt;
Article Tags&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“How to create a multiplication table in C++”&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you want to learn programming and are learning C ++, you will also know what things you will be able to create after learning it. For a small example you can make a calculator out of it.  You can also print a table. Our goal today is to print any table in C ++. First of all, you have to understand the sequence of the table and how it is written.  Procedures We have to write in our program. To write this program we need a loop.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Print Table of any Number in C++&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fcdy1hg3mx7s44wsfgdds.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fcdy1hg3mx7s44wsfgdds.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Dear student arithmetic factors are the most used component of any high level language.  Is used a lot. The arithmetic factors are actually a combination of operators and expressions. When we create a program in which the table has to be printed.  Let me show you how to create a program that will help you better understand how to create it and how to use for loop.&lt;/p&gt;

&lt;p&gt;(Concept)&lt;br&gt;
num * 1&lt;br&gt;
num * 2&lt;br&gt;
num * 3&lt;br&gt;
num * 4&lt;br&gt;
num * 5&lt;br&gt;
num * 6&lt;br&gt;
num * 7&lt;br&gt;
num * 8&lt;br&gt;
num * 9&lt;br&gt;
num * 10&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Explanation of Program&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include &amp;lt;iostream&amp;gt;
using namespace std;
int main()
{
  int i,a;
  cin&amp;gt;&amp;gt;a;
  for(i=1;i&amp;lt;=10;i++)                                
  {
    cout&amp;lt;&amp;lt;a&amp;lt;&amp;lt;" x "&amp;lt;&amp;lt;i&amp;lt;&amp;lt;" = "&amp;lt;&amp;lt;(a*i)&amp;lt;&amp;lt;endl;
  }
  return 0;
}

         OUTPUT 
5
5 x 1 = 5
5 x 2 = 10
5 x 3 = 15
5 x 4 = 20
5 x 5 = 25
5 x 6 = 30
5 x 7 = 35
5 x 8 = 40
5 x 9 = 45
5 x 10 = 50
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Summary:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Today we are understand to kodlogs website, I try to explain how to make a table in c++. I hope after reading this article you will be able to understand the table in c++.I would like to have feedback from my kodlogs site. Please post your feedback, question, or comments about this article.&lt;/p&gt;

&lt;p&gt;Article Tags &lt;br&gt;
C#|Python |Python 3|pycharm | html|java|JavaScript |cpp|code|rubi|Network | Google |html5 |php|bootstrap |string |Microsoft |variable |syntax |Coders |Codinglove|&lt;br&gt;
Computerscience|wordpress|html-page|php|&lt;br&gt;
Xml|game| net| list | loop | integer |float | string | double&lt;/p&gt;

</description>
      <category>c</category>
      <category>code</category>
    </item>
    <item>
      <title>What does a percent sign mean in python</title>
      <dc:creator>Tania</dc:creator>
      <pubDate>Mon, 21 Jun 2021 17:19:50 +0000</pubDate>
      <link>https://dev.to/tania585/what-does-a-percent-sign-mean-in-python-5087</link>
      <guid>https://dev.to/tania585/what-does-a-percent-sign-mean-in-python-5087</guid>
      <description>&lt;p&gt;** What does the percent (%) sign do in Python **&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--RI3jPy6A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cc6wnysjmew694pcjyld.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--RI3jPy6A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cc6wnysjmew694pcjyld.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What is %?&lt;/p&gt;

&lt;p&gt;Today we are talking about a very important programming topic which is%. We use it in all programming languages. Most programs do not run without it. Because if we put any condition in the program then the sign of% is anything.  Helps to print%% play a very important role with most if else. When I went to learn programming at my institute I used it in c ++ to introduce a data type.  As% d represents the integer% f, it is used to introduce float data type and represents the string% s. Also, if we want to extract the percentage of any number, we use% in which we  do multiplication. Most students are worried about how to get percentage. today i will show you a very simple method which i am using very easy. for example i have to get 4% of 20 then i get 0  If I subtract ×, the answer is 4 × 2 = 8.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5cPqJYac--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7v7slchnicel3o72gd1d.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5cPqJYac--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7v7slchnicel3o72gd1d.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(%) symbol&lt;/p&gt;

&lt;p&gt;you may think "percent" The (% )symbol in Python is called the Modulo Operator. It returns the remainder of dividing the left hand operand by right hand operand. It's used to get the remainder of a division problem.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2XpjmX9s--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qms3og64c056tp7yaguv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2XpjmX9s--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qms3og64c056tp7yaguv.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The modulo operator is considered an arithmetic operation, along with +, -, /, &lt;em&gt;, *&lt;/em&gt;, //.&lt;/p&gt;

&lt;p&gt;3 % 1 will be zero (as 3 divides evenly by 1)&lt;/p&gt;

&lt;p&gt;3 % 2 will be 1 (as dividing 3 by 2 results in a remainder of 1).&lt;/p&gt;

&lt;p&gt;Example :&lt;/p&gt;

&lt;p&gt;for number in range(1, 10):&lt;br&gt;
 if(number % 2 != 0): &lt;br&gt;
print(no)&lt;/p&gt;

&lt;p&gt;OUTPUT &lt;br&gt;
1&lt;br&gt;
3&lt;br&gt;
5&lt;br&gt;
7&lt;br&gt;
9&lt;/p&gt;

</description>
      <category>python</category>
      <category>python3</category>
    </item>
    <item>
      <title>C# convert float to int</title>
      <dc:creator>Tania</dc:creator>
      <pubDate>Thu, 17 Jun 2021 22:35:39 +0000</pubDate>
      <link>https://dev.to/tania585/c-convert-float-to-int-2oi2</link>
      <guid>https://dev.to/tania585/c-convert-float-to-int-2oi2</guid>
      <description>&lt;p&gt;Table of contents &lt;br&gt;
Convert float value to int &lt;br&gt;
Example float to int &lt;br&gt;
3 method of conversion &lt;br&gt;
Syntax &lt;br&gt;
Summary &lt;br&gt;
Article Tags &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Convert float value to int&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When we start programming we are learning a lot of new and important things that we did not know about. One of them is type conversion. First of all you should know that type in any programming language.  What is conversion? It is very simple to convert any data type to another data type. I am telling you in a very simple way. Byte b = 20 and float f = b;  If we understand carefully, the value that was in b will go to float. We have two types of data types to do conversion in programming. Conversion is what the compiler of c # does by itself. If we have a float.  We convert the data type to an integer.&lt;/p&gt;

&lt;p&gt;Example float to int:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;using System;

namespace convert_float_to_int
{
    class Program
    {
        static void Main(string[] args)
        {
            float f = 10.2f;
            int i = (int)f;
            Console.WriteLine("Converted float {0} to int {1}", f, i);
        }
    }
}

            ( OUTPUT )
Converted float 10.2  to int  10
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zU3je1jb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jdqp6suwgdx2lmniwl8y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zU3je1jb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jdqp6suwgdx2lmniwl8y.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Example &lt;/p&gt;

&lt;p&gt;int myfan = myFloatfan as int;&lt;br&gt;
int myfan= (int) myFloatfan;&lt;br&gt;
Then the compiler automatically performs the conversion. To convert the float to an integer, we write int in brackets, then the value after the point is deleted. And we can also apply the convert class.  There are three ways to convert C #.&lt;br&gt;
3 methods of conversion:&lt;/p&gt;

&lt;p&gt;1.Implicit type conversion &lt;br&gt;
2.Explicit type conversion &lt;br&gt;
3.Conversion between non compatible type&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TaU2wv_6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xh0tog58b8c29mft9dlg.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TaU2wv_6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xh0tog58b8c29mft9dlg.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;float myFloat = 3.5F;

int myInt = Convert.toInt32(myFloat);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Syntax&lt;/p&gt;

&lt;p&gt;int Convert.ToInt32(float value);&lt;/p&gt;

&lt;p&gt;Summary &lt;/p&gt;

&lt;p&gt;Today we are understand to kodlog website, I try to explain  C# convert  float to int . I hope after reading this article you will be able to understand conversion float to int in c#. I would like to have feedback from my kodlog site. Please post your feedback, question, or comments about this article.&lt;/p&gt;

&lt;p&gt;Article Tags &lt;br&gt;
C#|Python |Python 3|pycharm |html|java|JavaScript |cpp|code|rubi|Network | Google |html5 |php|bootstrap |string |Microsoft |variable |syntax |Coders |Codinglove|&lt;br&gt;
Computerscience|wordpress|html-page|php|&lt;br&gt;
Xml|game| net| list | loop | integer |float | string | double |&lt;/p&gt;

</description>
      <category>c</category>
      <category>code</category>
    </item>
    <item>
      <title>How to use OR in c++</title>
      <dc:creator>Tania</dc:creator>
      <pubDate>Wed, 16 Jun 2021 18:34:24 +0000</pubDate>
      <link>https://dev.to/tania585/how-to-use-or-in-c-16l0</link>
      <guid>https://dev.to/tania585/how-to-use-or-in-c-16l0</guid>
      <description>&lt;h3&gt;
  
  
  Or operator in c++
&lt;/h3&gt;

&lt;p&gt;Contents&lt;br&gt;
Overview &lt;br&gt;
Discussion &lt;br&gt;
||  truth table&lt;br&gt;
Syntax&lt;br&gt;
Example &lt;br&gt;
Summary &lt;br&gt;
Tags&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6aFJ5l71--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r15vg7i59yzveftp6a81.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6aFJ5l71--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r15vg7i59yzveftp6a81.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Logical OR operator: ||
&lt;/h4&gt;

&lt;p&gt;Overview&lt;br&gt;
Operators that are used in Boolean algebra for various logical factors are called logical operators. Boolean algebra also has three basic operators: AND operator, OR operator, NOT operator, and operator used for Logical Multiplication.  They are also denoted by a dot symbol in Boolean. Also used for OR operator Logical Addition. It is also denoted by a plus sign. In addition, the AND operator varies on variables or expressions.  (BAR) or dash. It is also called complement operator. It negates or reverses the value of a variable. If the value of the variable is 1, it makes it 0.  If yes, then it makes it 1. It was necessary to state this so that you can understand the logical operator well. These are the three basic operators. The operator we will talk about today is OR operator.  The process of logical addition of variables or numbers is called OR operation. OR operators are used for OR operation.  Let's try to understand it more.&lt;/p&gt;

&lt;h4&gt;
  
  
  Discussion
&lt;/h4&gt;

&lt;p&gt;Now let's talk about how the OR operator works in C ++. The C language allows you to use the following logical operators in the if statement &amp;amp;&amp;amp; which is commonly read as AND. ||  Which is usually read as OR.  ! Which is usually read as NOT. The working style of these operators is something like this.  If true, then the expression will be correct. The operator of! Denies any quantity or logical operation. Here, right means to be greater than or greater than 0 and wrong means to be 0. To understand these operators.  Make some example. &lt;/p&gt;

&lt;p&gt;|| (logical OR) operator truth table&lt;br&gt;
false||false=false&lt;br&gt;
false||true=true&lt;br&gt;
true||false=true&lt;br&gt;
true||true=true&lt;/p&gt;

&lt;p&gt;Syntax &lt;/p&gt;

&lt;p&gt;logical-or-expression || logical-and-expression&lt;/p&gt;

&lt;p&gt;C++ Logical OR Operator&lt;/p&gt;

&lt;p&gt;The logical OR operator || returns&lt;/p&gt;

&lt;p&gt;true - if one or more of the operands are true.&lt;/p&gt;

&lt;p&gt;false - if and only if all the operands are false.&lt;/p&gt;

&lt;p&gt;Truth Table of || Operator&lt;/p&gt;

&lt;p&gt;Let x and y be two operands. Then,&lt;/p&gt;

&lt;p&gt;X ....y= x||y&lt;/p&gt;

&lt;p&gt;Example : C++ OR Operator&lt;/p&gt;

&lt;p&gt;Language    AND      OR       NOT&lt;br&gt;&lt;br&gt;
C++         &amp;amp;&amp;amp;       ||        ! &lt;br&gt;
C#          &amp;amp;&amp;amp;       ||        !&lt;br&gt;
Java        &amp;amp;&amp;amp;       ||        !&lt;br&gt;
JavaScript  &amp;amp;&amp;amp;       ||        !&lt;br&gt;
Python     and       or       not&lt;/p&gt;

&lt;h4&gt;
  
  
  Summary
&lt;/h4&gt;

&lt;p&gt;Today we understand kodlog website, I try to explain or operator . I hope after reading this article you will be able to understand the or operator in c++. I would like to have feedback from my kodlog site. Please post your feedback, question, or comments about this article.&lt;/p&gt;

&lt;h4&gt;
  
  
  Tags
&lt;/h4&gt;

&lt;p&gt;C#|Python |Python 3|pycharm |html|java|JavaScript |cpp|code|rubi|Network | Google |html5 |php|bootstrap |string |Microsoft |variable |syntax |Coders |Codinglove|&lt;br&gt;
Computerscience|wordpress|html-page|php|&lt;br&gt;
Xml|game| net| list | loop | integer |float | string | double |&lt;/p&gt;

</description>
      <category>c</category>
      <category>code</category>
    </item>
    <item>
      <title>what is the difference between char and varchar?</title>
      <dc:creator>Tania</dc:creator>
      <pubDate>Tue, 15 Jun 2021 18:46:30 +0000</pubDate>
      <link>https://dev.to/tania585/what-is-the-difference-between-char-and-varchar-2kje</link>
      <guid>https://dev.to/tania585/what-is-the-difference-between-char-and-varchar-2kje</guid>
      <description>&lt;p&gt;In a SQL language, the datatype of a column simply means what type of value the column can hold i.e integers, char, long and etc. In that, there are two data types that appear to be the same but have key differences that we will discuss here.&lt;/p&gt;

&lt;h2&gt;
  
  
  CHAR DATATYPE
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;It stores character string type of data.&lt;/li&gt;
&lt;li&gt;It has a fixed length.&lt;/li&gt;
&lt;li&gt;If the length is less than what is specified, then it is padded with extra blank spaces.&lt;/li&gt;
&lt;li&gt;It leads to memory wastage.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Example: Consider there is a Table Employee with column id and name. name is of the data type char(5) with size 5. So, If you insert the name  ‘Hi’ Now, the length of String is less than the size i.e 5 so, it is padded with extra blank spaces.&lt;br&gt;
Note: This datatype should be used when the values in a column are of the same length.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  VARCHAR DATATYPE
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;By the name itself, we can understand i.e variable.&lt;/li&gt;
&lt;li&gt;It also stores character string type of data.&lt;/li&gt;
&lt;li&gt;It has a variable length.&lt;/li&gt;
&lt;li&gt;If the length is less than what is specified, then it will store as it is without padding.&lt;/li&gt;
&lt;li&gt;It saves memory.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Example: Consider the same example, there is a Table Employee with column id and name. name is of the data type char(5) with size 5. So, If you insert the name  ‘Hi’ Now, the length of the string is less than the size i.e 5 so now, it won’t do the padding of extra blank spaces.&lt;br&gt;
Note: This datatype should be used when the values in a column are of the variable length.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Important Tip: Performance wise char datatype should get a preference instead of varchar because char takes 1 byte to store each character and varchar takes 1 byte plus extra byte for holding length information.&lt;br&gt;
Thank you for reading this article!!&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>sql</category>
      <category>char</category>
      <category>varchar</category>
      <category>difference</category>
    </item>
    <item>
      <title>C++ what does break do</title>
      <dc:creator>Tania</dc:creator>
      <pubDate>Sun, 13 Jun 2021 19:34:32 +0000</pubDate>
      <link>https://dev.to/tania585/c-what-does-break-do-1274</link>
      <guid>https://dev.to/tania585/c-what-does-break-do-1274</guid>
      <description>&lt;p&gt;Contents &lt;br&gt;
Break in C/C++&lt;br&gt;
Switch statement &lt;br&gt;
Syntax &lt;br&gt;
Flow Diagram &lt;br&gt;
C++ Break&lt;br&gt;
Summary &lt;br&gt;
Article Tags&lt;br&gt;
Example &lt;/p&gt;

&lt;p&gt;Break Statement in C/C++:&lt;br&gt;
This is often the case in real life. We have to choose one of many items. For example, choose one of many programming languages. Choose one of the many programming websites.  Choosing a hotel to dine at. Choosing one of the many institutes. In such a situation the use of if statement becomes very long and complicated. C ++ alternative control statement to solve this problem.  With the help of this you can transfer control to any part of the program. So dear student, before clarifying the break statement, I will tell you to use the switch statement first so that you can use the break statement properly.  This is the control statement that allows us to select one of the many cases and follow the statement written under that case.&lt;/p&gt;

&lt;p&gt;Switch statement :&lt;/p&gt;

&lt;p&gt;If the switch statement is viewed more comprehensively, then it is switch &lt;em&gt;case&lt;/em&gt;.  Default. Because these three specific words combine to form a control statement.  Any integer expression can be given in brackets after the specific word of ch. which gives a number. When that number is like the number in front of a case, then the program along with all the statements written under that case.  Also executes all the given case and default statement given later. So now if we talk about break statement then let's try to understand. &lt;/p&gt;

&lt;p&gt;Syntax :&lt;br&gt;
The syntax of a break statement in C++ is −&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Break;&lt;br&gt;
Flow Diagram:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;C++ Break:&lt;br&gt;
If you want only case 2 to be executed.  It is important that the control of the program be transferred from the switch statement to the next line of the program as soon as the case statement is executed. For this, the specific word break of C should be added at the end of each case statement.  By doing so, our goal will be achieved. I hope you have understood the break statement well.&lt;br&gt;
 It was used to "jump out" of a switch statement.The break statement can also be used to jump out of a loop.&lt;/p&gt;

&lt;p&gt;Summary :&lt;/p&gt;

&lt;p&gt;Today we understand kodlog website, I try to explain the break statement . I hope after reading this article you will be able to understand the break statement . I would like to have feedback from my kodlog site. Please post your feedback, question, or comments about this article.&lt;/p&gt;

&lt;p&gt;Article Tags :&lt;br&gt;
C#|Python |Python 3|pycharm | html | java |JavaScript |cpp|code|rubi|Network | Google |html5 |php|bootstrap |string |Microsoft |variable |syntax |Coders |Codinglove|&lt;br&gt;
Computerscience|wordpress|html-page|php|&lt;br&gt;
Xml|game| net| list | loop | integer |float | string | double |&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include &amp;lt;iostream&amp;gt;
using namespace std;

int main() {
    int i = 0;

    while (i &amp;lt; 10) {
        if (i == 5) {
            break;
        }
        cout &amp;lt;&amp;lt; i &amp;lt;&amp;lt; '\n';
        i++;
    }

    i = 0;
    do {
        if (i == 5) {
            break;
        }
        cout &amp;lt;&amp;lt; i &amp;lt;&amp;lt; '\n';
        i++;
    } while (i &amp;lt; 10);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OUTPUT&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;In each case 
01234
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>c</category>
      <category>code</category>
    </item>
  </channel>
</rss>
