Your SlideShare is downloading. ×
Bodlogo
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Bodlogo

739
views

Published on


0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
739
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 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 />