Given: (x-2)(x+3)= 100;

solve the equation for x using any programing language.

Answer Posted / sumitpalsingh

/*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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do i add a column dynamically in a table by using java application?

1794


Need guidewire related Documents(Interview Question/Tips/Best Practice/Dumps)

329


THERE ARE 4 SOURCE FILES WHICH CONTAINS SAME METADATA CREATE A TARGET THAT SHOULD DISPLAY THE FILE NAME ALONG WITH THE RECORD PLEASE SEND THE ANSWERFOR THIS QUESTION WITH MAPPING

1916


what is dot net framework

2595


Explain what is OOPS and its concepts?

848


Diff between IF and where ?

1807


write a query that returns one row for each department and the number of employees in that department. Given two tables EMPLOYEE and DEPARTMENT, where there can be multiple employees per department.

1406


Code for display the images from drive using vb 6.0?

4713


Any real time example of O2C process from taking order till creating invoice.

2125


As per interoperatbility programs written in one language can be used by other language. How can we restrict the features of one language (say C#) in the programmer written in another language (say VB)..for example we have some features like operator overloading which is possible C#.NET (not in VB.NET), how can we restrict that when we are using this code in VB.NET.

1731


what is delegate and how works delegate and event.

1981


what is web service in java? have u use before.

1882


what is the current salary package in India for a lamp programmer

2098


1) How can u create the table?

1637


will it allow to add same value in HashMap class.

1914