Write a program. there are 1..n numbers placed in an
array in random fashion with one integer missing. find the
missing number.
Answer / jayakrishnan
Array.Sort(a);
var b= a.Where((o,index)=>o!=index+1);
Console.WriteLine(b.First()-1);
Is This Answer Correct ? | 5 Yes | 3 No |
Write a function which accepts list of nouns as input parameter and return the same list in the plural form. Conditions: i) if last letter is r then append s ii) if word ends with y then replace it by ies iii) call this function in main() and produce the required output. for eg:- if chair is input it should give chairs as output.
c# code to Count number of 1's in a given range of integer (0 to n)
how can i split sting in textbox in windows application using c# .net
how to change password in .net with c # with ado.net and also SQL server 2008 change password
Give the code for Handling Mouse Events?
How to use ASP.NET 2.0's TreeView to Display Hierarchical Data?
write a Program to copy the string using switch case.
Coding for using Nullable Types in C#?
How to find No of classes,Packages,No of Methods per Classes and Depth of Inheritance for selecting source code in windows form application using c# .net? (Source code is input Program. It may be Java or .net) Please help me..) Thanks..)
Write a program to count the number of characters, number of words, number of line in file.
how do i copy textbox contents of 1 form to another form
program for straight line(y=mx+c)