<?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: Swapnil7000</title>
    <description>The latest articles on Forem by Swapnil7000 (@swapnil7000).</description>
    <link>https://forem.com/swapnil7000</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%2F236778%2F5cc104a6-30e4-4f18-9ec0-1e92b385f35f.jpeg</url>
      <title>Forem: Swapnil7000</title>
      <link>https://forem.com/swapnil7000</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/swapnil7000"/>
    <language>en</language>
    <item>
      <title>Hacktoberfest completed 🎉🎉🎊🎊!!</title>
      <dc:creator>Swapnil7000</dc:creator>
      <pubDate>Tue, 12 Nov 2019 04:49:49 +0000</pubDate>
      <link>https://forem.com/swapnil7000/hacktoberfest-completed-3mh3</link>
      <guid>https://forem.com/swapnil7000/hacktoberfest-completed-3mh3</guid>
      <description>&lt;p&gt;Hi,guys welcome to my new blog. I am very happy to tell u that i have completed the hacktoberfest &amp;amp; got a badge recently take a look at the snap given below. I am very happy to have my first few contributions in open source. Happy coding.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--i05Nc-gk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/6j4chp7eu4ny695pg53i.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--i05Nc-gk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/6j4chp7eu4ny695pg53i.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>dev</category>
      <category>github</category>
      <category>opensource</category>
      <category>hacktoberfest</category>
    </item>
    <item>
      <title>Thoda likh lete hai public😎😎</title>
      <dc:creator>Swapnil7000</dc:creator>
      <pubDate>Wed, 06 Nov 2019 12:54:49 +0000</pubDate>
      <link>https://forem.com/swapnil7000/thoda-likh-lete-hai-public-4a7e</link>
      <guid>https://forem.com/swapnil7000/thoda-likh-lete-hai-public-4a7e</guid>
      <description>&lt;p&gt;Hello world se shuru hoti apni kahani&lt;br&gt;
Apun ko isko aage badhani&lt;br&gt;
Aaje badhake waha tak legani jaha pr apan ban jaye programming ke ambani&lt;br&gt;
Raste pr mushkile aayengi pr apun ko dekhke khatam ho jayegi&lt;br&gt;
Kyunki apun mein dum hai apun kisse kam hai&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"Coding &amp;amp; writing with a pen is like heaven"- Swapnil bhojwani&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Rhyming scheme aachi nhi hai pr phir bhi padh lo isse lol🤣🤣. Happy coding&lt;/p&gt;

</description>
      <category>motivation</category>
      <category>writing</category>
      <category>beginners</category>
      <category>watercooler</category>
    </item>
    <item>
      <title>How to make a calculator using c programming?</title>
      <dc:creator>Swapnil7000</dc:creator>
      <pubDate>Fri, 18 Oct 2019 10:35:38 +0000</pubDate>
      <link>https://forem.com/swapnil7000/how-to-make-a-calculator-using-c-programming-3g1b</link>
      <guid>https://forem.com/swapnil7000/how-to-make-a-calculator-using-c-programming-3g1b</guid>
      <description>&lt;p&gt;Hi guys welcome to my new blog. If you want to make a calculator using c programming then you are at the right place. In this blog i am going to tell that how to make a calculator using c programming &amp;amp; also going to discuss concepts used in it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pseudocode &amp;amp; concept:-&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you want to make code of a calculator or something big you should first right the pseudocode in order to solve the whole problem. This is how you should approach it:-&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Declare  variables  float a,b,c,d &amp;amp; char x for operator sign&lt;br&gt;
        ⬇️&lt;br&gt;
Enter the first number&lt;br&gt;
        ⬇️&lt;br&gt;
     Scan it&lt;br&gt;
        ⬇️&lt;br&gt;
Enter the second number&lt;br&gt;
        ⬇️ &lt;br&gt;
     Scan it&lt;br&gt;
        ⬇️&lt;br&gt;
Enter the operation +,-,÷,×&lt;br&gt;
        ⬇️&lt;br&gt;
     Scan it &lt;br&gt;
        ⬇️&lt;br&gt;
Now,use switch case as there is one variable x(Operator +,-,÷,×)&amp;amp; multiple cases&lt;br&gt;
        ⬇️&lt;br&gt;
Case'+':For addition&lt;br&gt;
        ⬇️&lt;br&gt;
Case'-':For subraction &lt;br&gt;
        ⬇️&lt;br&gt;
Case'×':For multipication&lt;br&gt;
        ⬇️&lt;br&gt;
Case'/':For division&lt;br&gt;
        ⬇️&lt;br&gt;
Default:For invalid operator*&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Switch case statements:-&lt;/strong&gt;&lt;br&gt;
Switch case statements are used in case of if elseif statements &amp;amp; when the cases depend on the variable inside switch if you enter 1 then case 1 will run. If 2 then case 2 and so on and after the whole case statement there is a break to get the control outside the loop. And there is a default statement there if someone enters different thing which is not mentioned in above case label then default statement will execute.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Syntax:-&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;switch(x)//&lt;strong&gt;x must be a variable&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;case 1: Statement 1;&lt;br&gt;
        break;&lt;br&gt;
case 2: Statement 2;&lt;br&gt;
        break;&lt;br&gt;
        :&lt;br&gt;
        :&lt;br&gt;
        :&lt;br&gt;
        :&lt;br&gt;
case n: Statement n;&lt;br&gt;
        break;&lt;/p&gt;

&lt;p&gt;default: Statement def;&lt;br&gt;
         break;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code for the calculator:-&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;#include&amp;lt; stdio.h &amp;gt;&lt;br&gt;
 #include&amp;lt; stdlib.h &amp;gt;&lt;br&gt;
int main()&lt;br&gt;
{&lt;br&gt;
  char y;&lt;br&gt;
  float a,b,c,d;//&lt;strong&gt;makes calculator more precise&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;printf("Enter the first number\n");&lt;br&gt;
  scanf("%f",&amp;amp;a);&lt;br&gt;
  printf("Enter the second number\n");&lt;br&gt;
  scanf("%f",&amp;amp;b);&lt;br&gt;
  printf("Enter the operation:\n+\n-\n*\n/\n");&lt;br&gt;
  scanf(" %c",&amp;amp;y);// &lt;strong&gt;Space before %c to have enter and then scan the character otherwise it will take enter as char &amp;amp; default case will run&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;switch(y)&lt;br&gt;
 {&lt;br&gt;
   case '+': c=a+b; //&lt;strong&gt;Case label 1&lt;/strong&gt;&lt;br&gt;
          printf("ADDITION of two numbers is %f",c);&lt;br&gt;
          break;&lt;br&gt;
   case '-': c=a-b;&lt;br&gt;
           printf("SUBTRACTION of two numbers is %f ",c);&lt;br&gt;
           break;&lt;br&gt;
   case '*': c=a*b;&lt;br&gt;
           printf("MUTIPICATION of two numbers is %f",c);&lt;br&gt;
           break;&lt;/p&gt;

&lt;p&gt;case '/': d=a/b;&lt;br&gt;
           printf("DIVISON of two numbers is %f ",d);&lt;br&gt;
           break;&lt;/p&gt;

&lt;p&gt;default:&lt;br&gt;
             printf("Invalid operator");&lt;br&gt;
             break;&lt;br&gt;
   }&lt;br&gt;
      return 0;&lt;br&gt;
  } &lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/Swapnil7000/Numbers.c/blob/master/Calculator.c"&gt;Source code on github&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I hope you liked the blog. Make sure that you comment on this blog &amp;amp; suggest things to make the calculator more better.Happy coding❤❤&lt;/p&gt;

</description>
      <category>c</category>
      <category>career</category>
      <category>beginners</category>
    </item>
    <item>
      <title>THINGS TO KNOW BEFORE GETTING INTO PROGRAMMING</title>
      <dc:creator>Swapnil7000</dc:creator>
      <pubDate>Mon, 14 Oct 2019 16:40:03 +0000</pubDate>
      <link>https://forem.com/swapnil7000/things-to-know-before-getting-into-programming-44ih</link>
      <guid>https://forem.com/swapnil7000/things-to-know-before-getting-into-programming-44ih</guid>
      <description>&lt;p&gt;Hi,guys welcome to my new blog.In this blog i am going to tell you  what are the things you should know before getting into programming.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;IMPORTANCE OF PROGRAMMING:-&lt;/strong&gt; &lt;br&gt;
Programming is useful in almost all things from landing to moon🚀🚀 till creating a website it's all about programming.You can program a computer according to your needs &amp;amp; it performs accordingly if there is no mistake in the code. This is so cool as you can do many calculations fastly if you know how to program a computer. If you do not do it then you will repent.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;EXPLORE THINGS:-&lt;/strong&gt;&lt;br&gt;
You should first explore the programming world before getting into it. You can explore things by trying different languages &amp;amp; you should have a clear idea about what you want to become like &lt;strong&gt;app developer,game developer,Website developer,etc&lt;/strong&gt;. As there is lot of scope in coding so you can set your goals and then can &lt;strong&gt;focus🎯&lt;/strong&gt;on it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BEGGINER FRIENDLY LANGUAGES:-&lt;/strong&gt;&lt;br&gt;
Many people think that &lt;strong&gt;python&lt;/strong&gt; is a begginer friendly language but i think it is not as it makes  it easy for programmers to code but at first you should try languages like &lt;strong&gt;c,c++,etc&lt;/strong&gt;.They are quite difficult but it will help you in future if you jump to any other languages in future.You have to do something beyond your comfort zone.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Stay motivated:-&lt;/strong&gt;&lt;br&gt;
At times you will find difficult problems &amp;amp; you can give up at that time. But don't do that always try to split bigger problems into shorter problems as it increases your efficiency &amp;amp; you can crack the algorithm quickly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Write pseudocode:-&lt;/strong&gt;&lt;br&gt;
Many people directly writes the code which is a bad practice.You should first write the pseudo code of the program then convert it into the code. It reduces the complexity of the problem &amp;amp; gives you a better edge in tracing the program. Just write the question in copy &amp;amp; try to make logic &amp;amp; then code it.&lt;/p&gt;

&lt;p&gt;I hope you liked the blog.Please share your views on this topic by commenting on this blog.Happy coding❤❤&lt;/p&gt;

</description>
      <category>career</category>
      <category>firstyearincode</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Vs code cheat sheet</title>
      <dc:creator>Swapnil7000</dc:creator>
      <pubDate>Fri, 04 Oct 2019 03:13:12 +0000</pubDate>
      <link>https://forem.com/swapnil7000/vs-code-cheat-sheet-2d3i</link>
      <guid>https://forem.com/swapnil7000/vs-code-cheat-sheet-2d3i</guid>
      <description>&lt;p&gt;If you are a beginner at coding and want to become a pro then you should know vs code cheat code to enhance your coding skills.As cheat code help you to do coding fastly and it enhances your coding skills.I want you to have these cheat codes at your work space &amp;amp; get used to these cheat codes.Cheat sheets for&lt;br&gt;
&lt;a href="https://www.google.com/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf&amp;amp;ved=2ahUKEwikp_b2ioDlAhXZfCsKHT8iCYgQFjAAegQIAxAB&amp;amp;usg=AOvVaw3IhUv6JwiLHEL2SrhdVrIp"&gt;&lt;strong&gt;Windows&lt;/strong&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.google.com/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf&amp;amp;ved=2ahUKEwjpkZyQjoDlAhVSXn0KHTksBEUQFjAAegQIBBAB&amp;amp;usg=AOvVaw2iWp15mgLBfM5XD5_ldg4W"&gt;&lt;strong&gt;MacOs&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginnerstoprojourney</category>
    </item>
    <item>
      <title>Vs code cheat sheet </title>
      <dc:creator>Swapnil7000</dc:creator>
      <pubDate>Thu, 03 Oct 2019 12:50:08 +0000</pubDate>
      <link>https://forem.com/swapnil7000/vs-code-cheat-sheet-3p5k</link>
      <guid>https://forem.com/swapnil7000/vs-code-cheat-sheet-3p5k</guid>
      <description>&lt;p&gt;&lt;strong&gt;Why Vs code?&lt;/strong&gt;&lt;br&gt;
Virtual studio code is a source-code editor developed by microsoft for windows, linux and macOs. It is a good editor for debugging and for embedded git and github. It includes syntax highlighting, code snippets, extensions .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Themes&lt;/strong&gt;&lt;br&gt;
There are many cool themes available in vs code which gives it an edge over other source-code editors.&lt;br&gt;
You can change the theme as per your convinence.I would prefer you the dark themes as they look cool over the other themes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UGUHtoBP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/fb3oavcma7c3bp04t0aw.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UGUHtoBP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/fb3oavcma7c3bp04t0aw.gif" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you are a beginner at coding and want to become a pro then you should know vs code cheat code to enhance your coding skills. As cheat code helps you to do coding fastly. I want you to have these cheat codes at your workspace &amp;amp; get used to these cheat codes. Cheat sheets for:-&lt;br&gt;
●&lt;a href="https://www.google.com/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf&amp;amp;ved=2ahUKEwikp_b2ioDlAhXZfCsKHT8iCYgQFjAAegQIAxAB&amp;amp;usg=AOvVaw3IhUv6JwiLHEL2SrhdVrIp"&gt;&lt;strong&gt;Windows&lt;/strong&gt;&lt;/a&gt;&lt;br&gt;
●&lt;a href="https://www.google.com/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf&amp;amp;ved=2ahUKEwjpkZyQjoDlAhVSXn0KHTksBEUQFjAAegQIBBAB&amp;amp;usg=AOvVaw2iWp15mgLBfM5XD5_ldg4W"&gt;&lt;strong&gt;MacOs&lt;/strong&gt;&lt;/a&gt;&lt;br&gt;
●&lt;a href="https://www.google.com/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=https://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdf&amp;amp;ved=2ahUKEwiTgKDCjoDlAhUGv48KHZXdBZYQFjAAegQICBAC&amp;amp;usg=AOvVaw37Ef1FLUrnuviGNk5Fez6I"&gt;&lt;strong&gt;Linux&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Multi line cursor using cheat code&lt;/strong&gt;:-&lt;br&gt;
To insert multiple cursor press-&lt;br&gt;
Alt+Click&lt;br&gt;
To insert multiple cursor above/below press-&lt;br&gt;
Ctrl+Alt+↑ / ↓&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ktxg9hfy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/oh5rcs431v671n621tzn.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ktxg9hfy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/oh5rcs431v671n621tzn.gif" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Share your views on this blog. Happy coding❤❤&lt;/p&gt;

</description>
      <category>beginnerstoprojourney</category>
    </item>
    <item>
      <title>TERNARY OPERATORS IN C LANGUAGE</title>
      <dc:creator>Swapnil7000</dc:creator>
      <pubDate>Thu, 26 Sep 2019 04:15:57 +0000</pubDate>
      <link>https://forem.com/swapnil7000/terniary-operators-in-c-language-2o6p</link>
      <guid>https://forem.com/swapnil7000/terniary-operators-in-c-language-2o6p</guid>
      <description>&lt;p&gt;HOW TO WRITE A C PROGRAM TO COMPARE THREE NUMBER WITHOUT USING IF-ELSE STATEMENTS?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Remarks:-&lt;/strong&gt;&lt;br&gt;
The conditional operator (? :) is a ternary operator (it takes three operands). The conditional operator works as follows:&lt;/p&gt;

&lt;p&gt;● The first operand is implicitly converted to bool. It is evaluated and all side effects are completed before continuing.&lt;/p&gt;

&lt;p&gt;● If the first operand evaluates to true (1), the second operand is evaluated.&lt;/p&gt;

&lt;p&gt;● If the first operand evaluates to false (0), the third operand is evaluated.&lt;/p&gt;

&lt;p&gt;The result of the conditional operator is the result of whichever operand is evaluated — the second or the third. Only one of the last two operands is evaluated in a conditional expression.&lt;/p&gt;

&lt;p&gt;Conditional expressions have right-to-left associativity. The first operand must be of integral or pointer type. The following rules apply to the second and third operands:&lt;/p&gt;

&lt;p&gt;● If both operands are of the same type, the result is of that type.&lt;/p&gt;

&lt;p&gt;● If both operands are of arithmetic or enumeration types, the usual arithmetic conversions (covered in Standard Conversions) are performed to convert them to a common type.&lt;/p&gt;

&lt;p&gt;● If both operands are of pointer types or if one is a pointer type and the other is a constant expression that evaluates to 0, pointer conversions are performed to convert them to a common type.&lt;/p&gt;

&lt;p&gt;● If both operands are of reference types, reference conversions are performed to convert them to a common type.&lt;/p&gt;

&lt;p&gt;● If both operands are of type void, the common type is type void.&lt;/p&gt;

&lt;p&gt;● If both operands are of the same user-defined type, the common type is that type.&lt;/p&gt;

&lt;p&gt;● If the operands have different types and at least one of the operands has user-defined type then the language rules are used to determine the common type. (See warning below.)&lt;/p&gt;

&lt;p&gt;Any combinations of second and third operands not in the preceding list are illegal. The type of the result is the common type, and it is an l-value if both the second and third operands are of the same type and both are l-values.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;USING NESTED IF ELSE STATEMENT:-&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Frqms6lu55x63vvad9vep.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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Frqms6lu55x63vvad9vep.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;USING TERNARY OPERATORS:-&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fmc1os1s5ynwcnw247h01.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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fmc1os1s5ynwcnw247h01.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;int main()&lt;br&gt;
{ &lt;br&gt;
int a,b,c,max;//Declaration of variables&lt;/p&gt;

&lt;p&gt;printf("Enter three numbers to find maximum");/&lt;em&gt;Asking the users to enter three numbers&lt;/em&gt;/&lt;/p&gt;

&lt;p&gt;scanf("%d%d%d",&amp;amp;a,&amp;amp;b,&amp;amp;c);/&lt;em&gt;To scan the value of the numbers&lt;/em&gt;/&lt;/p&gt;

&lt;p&gt;max=a&amp;gt;b?a &amp;gt;c?a:c:b&amp;gt;c?b:c;/&lt;em&gt;Terniary operator to find maximum of three numbers&lt;/em&gt;/&lt;/p&gt;

&lt;p&gt;printf("%d",max);/*To print the maximum value */&lt;br&gt;
}&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fquwbk939forvpvrdlofe.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%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fquwbk939forvpvrdlofe.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;EXPLANATION TO THE GIVEN CODE:-&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this program firstly we declare four variables three numbers to compare and one max variable in which maximum value is stored and then we asked user to enter three numbers then we use terniary operators to compare three numbers and then find max of three numbers and store it to max variable firstly it will check that is a&amp;gt;b if a&amp;gt;b then it will check that is a&amp;gt;c if this is true it will copy value of  a in max and will print a.If ac or not if it is true then b will be assigned to max and b will gets printed if this is not true then c will be assigned to max and will be printed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Syntax of ternary operators:-&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;CONDITION?TRUE STATEMENT:FALSE STATEMENT&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;RESULT:-&lt;/strong&gt;&lt;br&gt;
At the end i want to conclude that You can make the above program using nested if-else statement as well as using terniary operators.I have preffered terniary operators over nested if else as it has less lines of code which makes your code more readable.That is the main reason for writing the blog.I hope you enjoyed it❤❤.&lt;/p&gt;

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