answersLogoWhite

0

By subtracting any two of the numbers A-B , if the output number is negative , B IS GREAT and if its positive A is great

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Engineering

How do you compare two numbers without using any operators in c?

You cannot compare 2 numbers without using relational operators. Certainly, you could subtract them, but you still need to test the result, and that is a relational operator in itself.


How a program in c that will add 2 numbers without using any operator?

Not possible. Let's not forget than in C the followings are all operators:+, -+=, -=++, --=&, *, []function-call


How do you swap two numbers without using third one using pointers?

How do you do. I am doing well thank you. Swap two number by using reference operators A tough assignment, it will make you think. I think you are confusing reference operators with pointers. Were I you I would study the section on pointers in your text book or course material.


Addition of two numbers without using operators in java?

I don't think this can be done. Why do you want to do it without operators, anyway? It is fairly simple to use them. - Of course, you could write a method that adds two numbers, but your method will internally still have to use operators. ----------------------------------------- Reply by lordstriker24@yahoo.com import java.math.BigInteger; public class MultiplyTest { public static void main(String[] args) { BigInteger bigInt1 = new BigInteger("5"); BigInteger bigInt2 = new BigInteger("8"); System.out.println(bigInt1.add(bigInt2)); } }


Largest of 3 numbers without using conditional or relational operators?

void main() { int a = 5; int b = 7; int c = 2; int res; res = (int)(a/b)?a:b; res = (int)(res/c)?res:c; printf("big num = %d",res); }

Related Questions

How do you find the greatest of two numbers without using the comparison operators?

void main() { float i,j; int a; printf("Enter two numbers : "); scanf("%f%f",&i&j); a=i/j; if(a) printf("%f is greater",i); else printf("%f is greater",j); }


How do you add two numbers without any operators in maths?

Calculus Magic!


How do you compare two numbers without using any operators in c?

You cannot compare 2 numbers without using relational operators. Certainly, you could subtract them, but you still need to test the result, and that is a relational operator in itself.


How do you compare 2 numbers without using relational operators in c?

using max function


What is the simplify of 11 15 4 910 5 7?

There is no way to simplify a string of numbers without any operators.


Which digit can replace the box to make this comparison statement true?

To determine which digit can replace the box to make the comparison statement true, we need to analyze the context of the comparison and the numbers involved. Without specific numbers or the comparison statement provided, I cannot give a definitive answer. Please provide the comparison statement for a more accurate response.


What is 4.5 10 3?

It is a group of numbers without any operators separating them. It is therefore not possible to evaluate them as if they formed a numerical expression.


What is the greatest of the common factors of two or more numbers is the blank of the numbers?

The greatest of the common factors of two or more numbers is the greatest common divisor (GCD) of the numbers. It represents the largest positive integer that divides each of the numbers without leaving a remainder. Finding the GCD is useful in simplifying fractions and solving problems in number theory.


How many set of 5 numbers can be made with 2 7 3 1?

None without applying any binary operations because repeated use of a digit does not alter the cardinality of a set. If you can use operators, the answer depends on which operators and how they may be combined.


What is the greatest common multiple of 24 and 52?

There is no greatest common multiple of any integers as whatever number is said to be it, the lowest common multiple of the numbers can be added to get an even greater common multiple. If you mean least common multiple (the lowest (positive) integer that can be divided by the numbers without a remainder), the answer is 312. If you mean the greatest common factor (the greatest (positive) integer that can divide into the numbers without any remainder). the answer is 4.


Does 37 have a greatest common factor?

No. There is not a greatest common factor of a single number, such as 37, because there cannot be a greatest common factor without two or more numbers to compare. Common factors are factors that the numbers being compared have in common. The greatest common factor is the largest factor that all the numbers being compared have in common.


What is the greatest no which divides two or more no without a remainder?

The greatest common factor (GCF) or highest common factor (HCF) of the two (or more) numbers.