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 |
program for addition of fraction(M/N + P/Q = Y/Z)
Write a function which accepts a sentence as input parameter.Each word in that sentence is to be reversed. Space should be there between each words.Return the sentence with reversed words to main function and produce the required output. for eg:- i/p: jack jill jung kill o/p: kcaj llij gnuj llik
Code for IP Address Comparison and Conversion in C#?
working with arrays
Give the code for Handling Mouse Events?
Event Handling in C# Triggering a Button
Code for Reading and writing from a file in c#?
Write a program. there are 1..n numbers placed in an array in random fashion with one integer missing. find the missing number.
How to Create a Treeview Menu in ASP.NET with C#?
program for straight line(y=mx+c)
IS Array list is generic or non generic
Write a program to input an integer and - display the reverse - display the sum of each digit - should include logic that considers the input number as any number of digits long