Given: (x-2)(x+3)= 100;
solve the equation for x using any programing language.
Answers were Sorted based on User's Feedback
Answer / sravan
public class Test {
static int x;
public static void find()
{
for(x=0;x<104;x++)
{
if((x-2)*(x+3)==104)
{
System.out.println(x);
}
}
}
public static void main(String[] args) {
find();
}
}
Answer: 10
| Is This Answer Correct ? | 1 Yes | 0 No |
/*Given: (x-2)(x+3)= 104; solve the equation for x using any programing language.*/
package classroom.program;
public class SolveProblem {
public static void main(String[] args) {
for(int x=0;x<100;x++)
{
if((x-2)*(x+3)==100)
{
System.out.println(x);
}
}
}
}
//output::=10
| Is This Answer Correct ? | 1 Yes | 2 No |
Why we need new operator in java at the time of object declaration and why not in c++?
how to get second highest salary from a employee table and how get a 5th highest salary from a employee table by using proc sql?
What is the merger sort principle and its time complexity.
without selecting individually each field in Action Class from jsp,what is the best process to select as many as field at a time automatically from jsp page by using value object class.
Explain polymorphism. Provide an example.
Can anyone provide as400 training material or any institute in bangalore for as400 training
sample code for data transfer between two r/2 systems and r/3 systems?
what is oops?
Define Abstract method & class with Example
If i have a dataset queried from Sql and I would like to insert the dataset into a specific node in an xml document how do I do this
if 2 is passed as an argument to the method,void GC.Collect then what would be the result?
what is the diffrence between occur 0 and occur 10 in ABAP.