answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How do you assign the product of variables b and c to variable a?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic

Can a correlated study determine when there is lack of a relationship between two variables?

Sure. If you can observe that when variable A changed, variable B didn't change, and this happens repeatedly, that is a good indication that there is no relationship between those variables.


What are the necessary condition for a deadlock?

1) An environment that allows more than one program to access the same set of variable. 2) The ability of a program to "sleep" until it can have (access) a varible. 3) The ability of a program to block other programs from having (accessing) a variable. Dead Lock example: Program GoodGosh and GoshDarn both access variables A and B by "Locking" the variables, doing some processing, and then releasing the variables. Both variables have to be obtained and locked before further processing and unlocking can occur. While processing, Program GoodGosh acquries a lock on variable A and then attempts to acqure a lock on Varable B. Before GoodGosh can acquire variable B, Program GoshDarn acqures a lock on variable B. GoodGosh want B and owns A. GoshDarn owns A and wants B. Neither can process further until the other releases a variable. Deadlock now exists. Note: To prevent deadlocks, all modules/programs that access the same set of variables should always acquire the variables in the same order.


The variables a and b represent positive integers neither of which are divisible by 10 yet the product of a and b is 100000 Find the sum of a and b?

641


How do you write a program in C plus plus plus plus How do you write a program in C to swap two variables without using the third oneo swap two variables without using the third one?

To swap two variables without using a third variable, use exclusive or manipulation... a ^= b; b ^= a; a ^= b;


What statistical test should be used to compare whether one of two variables A or B has the greatest influence on variable set C?

t-test

Related questions

Swapping of 2 numbers using java language?

Use a temporary variable. Example (swap variables "a" and "b"): int a = 5; int b = 10; // Swap the variables int temp; temp = a; a = b; b = temp; System.out.println("a = " + a); System.out.println("b = " + b);Use a temporary variable. Example (swap variables "a" and "b"): int a = 5; int b = 10; // Swap the variables int temp; temp = a; a = b; b = temp; System.out.println("a = " + a); System.out.println("b = " + b);Use a temporary variable. Example (swap variables "a" and "b"): int a = 5; int b = 10; // Swap the variables int temp; temp = a; a = b; b = temp; System.out.println("a = " + a); System.out.println("b = " + b);Use a temporary variable. Example (swap variables "a" and "b"): int a = 5; int b = 10; // Swap the variables int temp; temp = a; a = b; b = temp; System.out.println("a = " + a); System.out.println("b = " + b);


How do you swap variables in PHP?

By using a third temporary variable. $tmp = $a; $a = $b; $b = $tmp;


What is input variability?

an input variable is an input variable


Pulsating variable stars are A-Binary stars B-Pulsars C-Novas D-Cephied Variables?

Cepheid Variables.


What is the Algorithm for exchanging values of two variables?

There are three primary algorithms to exchange the values of two variables. Exchange with Temporary Variable temp = a; a = b; b = temp; Exchange Without Temporary Variable Using Exclusive Or a = a ^ b; b = b ^ a; a = a ^ b; Exchange Without Temporary Variable Using Arithmetic a = a + b; b = b - a; a = a - b;


Write a paogram to compare 4 integer variable and show the no which is lowest among 4 variable?

Let's call the four variables a, b, c, and d. You will also need a fifth variable, let's call it min.First assign all the variables the numbers that you want to compare.Give min the same value as a: min = a;Then compare min to b, if b is less than min, then assign b to min:if (b < min)min = b;And do the same for the others:if (c < min)min = c;if (d < min)min = d;Now min has the lowest value of the four, print the value of min, which will tell you what the lowest number is.If you have a lot of numbers to compare, writing if statements like this can get messy and confusing, you can use an array for all the values and a for (or while) statement to repeat the "if" part over and over again.


Product of twice a and b?

The product of twice &quot;a&quot; and &quot;b&quot; can be expressed as: 2ab In this expression, &quot;a&quot; and &quot;b&quot; are variables that represent numerical values. Multiplying &quot;a&quot; and &quot;b&quot; gives their product, and then multiplying the result by 2 gives twice that product.


Can a correlated study determine when there is lack of a relationship between two variables?

Sure. If you can observe that when variable A changed, variable B didn't change, and this happens repeatedly, that is a good indication that there is no relationship between those variables.


What means a equals equals equals b in c language?

a b means return true if the value of a is equal to the value of b, otherwise return false. a = b means assign the value of b to the variable a.


Two numbers have a product of 20 and a sum of 9?

To solve this question use a two variable system of equations. First assign a variable to each number: a=first number b=second number Then use the information in the problem to write two equations They have a product of 20 translates to: a x b =20 They have a sum of 9 translates to: a + b =9 Use the method of substitution. Isolate one variable in the 1st equation: a= 20/b Plug it into the 2nd equation: (20/b) + b = 9 Solve for b: b = 5 Now put b back into the 2nd equation: a + 5=9 Solve for a: a = 4 So the solution is 4 and 5.


What Are The Differences Between Java And Python Variables Declaration?

You cannot declare a variable in Python without assigning some value to it. This is simply because a variable's type is inferred from the type of value that you assign to it. a = "hello world" # a is a string b = 42 # b is an integer c = 3.14 # c is a float d = [4, 8, 15, 16, 23, 42] # d is an integer array In Java, all variable declarations must explicitly include a type even when declared with an initial value. The initial value, when given, must be of the same type or of a type that is covariant with the variable's type. String a = "hello world"; int b = 42; double c = 3.14 int[] d = {4, 8, 15, 16, 23, 42} Note that local variables in Java that are declared but not assigned a value are considered "uninitialised". You must assign a value to all local variables before using them. Instance variables (members of a class) are always initialised. That is; numeric types have an initial value of zero, Boolean types are false and object references are null.


How can you devise a way to interchange two variables A and B without using a third variable or register using Exclusive OR?

A = A xor B B = A xor B A = A xor B in C... A^=B; B^=A; A^=B;