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 |
Event Handling in C# Triggering a Button
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
"c sharp" code for factorial using static variables
Coding for using Nullable Types in C#?
Automatically Hyperlink URLs and E-Mail Addresses in ASP.NET Pages with 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 add a value from textBox over an existing certain column in SQL Server
program for straight line(y=mx+c)
Write a program to convert postfix expression to infix expression.
working with arrays
Create a class called Accounts which has data members like ACCOUNT no, Customer name, Account type, Transaction type (d/w), amount, balance D->Deposit W->Withdrawal If transaction type is deposit call the credit(int amount) and update balance in this method. If transaction type is withdraw call debit(int amt) and update balance. Pass the other information like Account no,name,Account Type through constructor. Call the show data method to display the values.
how does the below eqation proceed to be solved: x*=y+z options: x=x*y+z or x=x*(y+z)