What is wrong in this Code?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Code-:
I am 13 years old and I am a newbie
       <span style="color:#0000ff; font-size:small
<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
using





<span style="font-size:small <span style="font-size:small System;
<span style="font-size:small <span style="font-size:small <br/>
<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
using





<span style="font-size:small <span style="font-size:small System.Collections.Generic;
<span style="font-size:small <span style="font-size:small <br/>
<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
using





<span style="font-size:small <span style="font-size:small System.Linq;
<span style="font-size:small <span style="font-size:small <br/>
<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
using





<span style="font-size:small <span style="font-size:small System.Text;
<span style="font-size:small <span style="font-size:small <br/>
<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
using





<span style="font-size:small <span style="font-size:small System.Threading.Tasks;
<span style="font-size:small <span style="font-size:small <br/>
<br/>
<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small
namespace





<span style="font-size:small <span style="font-size:small Practice4._5
<span style="font-size:small <span style="font-size:small
{
   



<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small class<span style="font-size:small <span style="font-size:small <span style="color:#2b91af; font-size:small <span style="color:#2b91af; font-size:small <span style="color:#2b91af; font-size:small Program
<span style="color:#2b91af; font-size:small <span style="color:#2b91af; font-size:small <span style="color:#2b91af; font-size:small <br/>
<span style="font-size:small <span style="font-size:small
    {
       



<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small static<span style="font-size:small <span style="font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small void<span style="font-size:small <span style="font-size:small Main(<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small string<span style="font-size:small <span style="font-size:small []
args)
<span style="font-size:small <span style="font-size:small
        {
           



<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small byte<span style="font-size:small <span style="font-size:small b1 = 100, b2 = 200;
<span style="color:#008000; font-size:small <span style="color:#008000; font-size:small <span style="color:#008000; font-size:small // Declaration of Variables
<span style="color:#008000; font-size:small <span style="color:#008000; font-size:small <span style="color:#008000; font-size:small <br/>
<span style="font-size:small <span style="font-size:small
           



<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small int<span style="font-size:small <span style="font-size:small b3 = b1 &#43; b2;
<span style="color:#008000; font-size:small <span style="color:#008000; font-size:small <span style="color:#008000; font-size:small // Conversion form byte to int
<span style="color:#008000; font-size:small <span style="color:#008000; font-size:small <span style="color:#008000; font-size:small <br/>
<span style="font-size:small <span style="font-size:small
           



<span style="color:#2b91af; font-size:small <span style="color:#2b91af; font-size:small <span style="color:#2b91af; font-size:small Console<span style="font-size:small <span style="font-size:small .WriteLine(<span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small &quot;Number
1 = {0}&quot;<span style="font-size:small <span style="font-size:small , b1);
<span style="font-size:small <span style="font-size:small
           



<span style="color:#2b91af; font-size:small <span style="color:#2b91af; font-size:small <span style="color:#2b91af; font-size:small Console<span style="font-size:small <span style="font-size:small .WriteLine(<span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small &quot;Number
2 = {1}&quot;<span style="font-size:small <span style="font-size:small ,b2);
<span style="font-size:small <span style="font-size:small
           



<span style="color:#2b91af; font-size:small <span style="color:#2b91af; font-size:small <span style="color:#2b91af; font-size:small Console<span style="font-size:small <span style="font-size:small .WriteLine(<span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small &quot;Sum
of {0},{1} = {2}&quot;<span style="font-size:small <span style="font-size:small , b1, b2, b3);
<span style="font-size:small <span style="font-size:small
           



<span style="color:#2b91af; font-size:small <span style="color:#2b91af; font-size:small <span style="color:#2b91af; font-size:small Console<span style="font-size:small <span style="font-size:small .ReadLine();
<span style="color:#008000; font-size:small <span style="color:#008000; font-size:small <span style="color:#008000; font-size:small // System Pause
<span style="color:#008000; font-size:small <span style="color:#008000; font-size:small <span style="color:#008000; font-size:small <br/>
<span style="font-size:small <span style="font-size:small
        }
    }
}


View the full article
 
Back
Top