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 |
How can we develop a multi-tier application in Java?
what is meaning of MDM in sap?let me know that meaning
this question is from sas:what is the difference between FILE and INFILE statements? plz explain in brief?
In an customer exit (include Z) program, only the last record is getting fetched. The exit is getting called after pressing save button. What to write for fetching the first record ? Before saved to a SAP table how can i call all these records in an itab in the exit ?
in a VB application, where the data will be stored after manipulation? what is the syntax for that?
hi this is uday i want prepare for nic exam if any one have previous question papers please send me or atlest guide me how to prepare my ID is udaykiran4u@in.com
How can you incorporate a Datawindow to a Oracle8i stored procedure?
How does the TCP handle the issue of multiplexing?
Difference between debugging, running, executing of an application
What is autocall macro and how to create autocall macro? what is the use of it?
What is the entry point function of a DLL?
Why we use NEW operator when we create Object,While in C++ we donot ?