I'm trying to make a search by different option say A, B . what i need is if user provide value of A only then it does the searching using parameter A only , if user provide A and B then it needs to do searching using condition A=value1 AND B=value2. How can i do this please help how can i start?

That almost looks like the pseudo-code for the solution...
user provide value of A only then search using A==value1
if user provide A and B then search using A==value1 && B==value2.

there are 5 fields in my program name, address, number, salary ,post i need to do the searching as for A,B,C provided A+B+C for A , D provided condition should be A+D. how many query state ment do i have to write?

You couild use a wild-card approach, eg set all 4 search values to "*" then replace any/all with the value(s) given by the user, then write a single if test that goes like

Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of ...

When I execute this progammatically, I get a table with row heights much larger than when I do this manually.

Note : Sel is the Word.Selection object and the Clipboard contains an Excel Table.

public void AddClipboard()
{
Sel.PasteExcelTable(false,false, false);
var t = Sel.Tables[Sel.Tables.Count];
t.AutoFitBehavior(Word.WdAutoFitBehavior.wdAutoFitContent);
}

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...