More Related Content
DOCX
DOCX
PPTX
PDF
Algoritmos (Moda, Redondear) DOCX
DOCX
RTF
PPTX
What's hot
DOCX
DOCX
PPT
PPTX
DOCX
exercise of basic computer programming.docx PDF
DOCX
matrix operation using operator overloading Viewers also liked
PPTX
PDF
PDF
DOCX
10r angiin jishig bodlogo DOCX
DOC
PPTX
PDF
си хэлний хичээлүүд 11 р анги DOCX
DOCX
DOC
10r angiin jishig daalgawar PPT
3 r angiin hudulguunii bodlogo DOCX
MÍDIA KIT - CHARLES ARAUJO PPTX
PDF
PPTX
La organizacion administrativa del estado mexicano PPTX
PPS
KEY
Introduce Node.js Taiwan community PDF
More from orgil
DOCX
DOCX
DOCX
DOCX
DOCX
DOCX
DOCX
DOCX
DOCX
DOCX
DOCX
DOCX
DOCX
DOCX
DOCX
DOCX
DOCX
DOCX
DOCX
DOCX
Bodlogo
- 1.
namespace ConsoleApplication32<br />{<br/> class Program<br /> {<br /> static void Main(string[] args)<br /> {<br /> string s = Console.ReadLine(); <br /> string k = \"
\"
;<br /> int j = s.Length-1;<br /> for (int i = 0; i < s.Length; i++)<br /> { <br /> k=k.Insert(i,s.Substring(j, 1));<br /> j--;<br /> } <br /> Console.WriteLine(k);<br /> Console.ReadLine();<br /> }<br /> }<br />}<br />namespace ConsoleApplication32<br />{<br /> class Program<br /> {<br /> static void Main(string[] args)<br /> {<br /> string s = Console.ReadLine(); <br /> string k = \"
\"
;<br /> int j = s.Length-1;<br /> for (int i = 0; i < s.Length; i++)<br /> { <br /> k=k.Insert(i,s.Substring(j, 1));<br /> j--;<br /> }<br /> if (int.Parse(s) == int.Parse(k)) <br /> Console.WriteLine(\"
palindrom mon\"
);<br /> else<br /> Console.WriteLine(\"
palindrom bish\"
);<br /> Console.ReadLine();<br /> }<br /> }<br />}<br />namespace ConsoleApplication34<br />{<br /> class Program<br /> {<br /> static void Main(string[] args)<br /> {<br /> double m = double.Parse(Console.ReadLine()); <br /> string s=Convert.ToString(m/2);<br /> if (s.Contains(\"
.\"
))<br /> Console.WriteLine(\"
sondgoi\"
);<br /> else<br /> Console.WriteLine(\"
tegsh\"
); <br /> Console.ReadLine(); <br /> }<br /> }<br />}<br />namespace ConsoleApplication35<br />{<br /> class Program<br /> {<br /> static void Main(string[] args)<br /> {<br /> int[] a = new int[100];<br /> int[] b = new int[100];<br /> Console.Write(\"
a massiviin elementiin too:=\"
);<br /> int n =int.Parse(Console.ReadLine());<br /> <br /> for (int i = 1; i <= n; i++)<br /> {<br /> Console.Write(\"
a[{0}]:=\"
, i);<br /> a[i] = int.Parse(Console.ReadLine()); <br /> }<br /> <br /> int t = n;<br /> for (int i = 1; i <= n; i++)<br /> {<br /> b[i] = a[t];<br /> t--;<br /> }<br /> for (int i = 1; i <= n; i++) <br /> Console.WriteLine(\"
b[{0}]:={1}\"
, i, b[i]); <br /> <br /> Console.ReadLine();<br /> }<br /> }<br />}<br />namespace ConsoleApplication36<br />{<br /> class Program<br /> {<br /> static void Main(string[] args)<br /> {<br /> int[] a = new int[100];<br /> <br /> Console.Write(\"
a massiviin elementiin too:=\"
);<br /> int n = int.Parse(Console.ReadLine());<br /> for (int i = 1; i <= n; i++)<br /> {<br /> Console.Write(\"
a[{0}]:=\"
, i);<br /> a[i] = int.Parse(Console.ReadLine());<br /> }<br /> int k=0;<br /> for (int i = 1; i <= n-1; i++)<br /> for (int j = i+1; j <= n; j++) <br /> if (a[i] > a[j])<br /> {<br /> k = a[i];<br /> a[i] = a[j];<br /> a[j] = k;<br /> }<br /> for (int i = 1; i <= n; i++)<br /> Console.WriteLine(\"
a[{0}]:={1}\"
, i, a[i]);<br /> Console.ReadLine();<br /> }<br /> }<br />}<br />namespace ConsoleApplication37<br />{<br /> class Program<br /> {<br /> static void Main(string[] args)<br /> {<br /> int[] a = new int[100];<br /> <br /> Console.Write(\"
a massiviin elementiin too:=\"
);<br /> int n = int.Parse(Console.ReadLine());<br /> for (int i = 1; i <= n; i++)<br /> {<br /> Console.Write(\"
a[{0}]:=\"
, i);<br /> a[i] = int.Parse(Console.ReadLine());<br /> }<br /> int max = a[1];<br /> int j=1;<br /> for (int i = 2; i <= n; i++) <br /> if (max < a[i])<br /> {<br /> max = a[i];<br /> j = i;<br /> } <br /> <br /> Console.WriteLine(\"
hamgiin ih utga n: a[{0}]={1}\"
, j, max);<br /> Console.ReadLine();<br /> }<br /> }<br />}<br />