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 |
Please describe an example where you used object orientation in one of your programs.
I HAVE DONE TESTING TOOLS COURSE,NOW I AM FRESHER,I AM NOT GETTING ANY CALLS,I WANT TO DO THE PROJECT ,WHERE I HAVE TO MEET TO DO THE PROJECT,I AM GOING WITH FAKE EXPERIENCE,SO WHAT I HAVE TO DO.
I'm new to ABAP. What is Module pool in SAP?
When you?re running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?
what is difference between input parameter and output parameter.
what is diff bet ref variable & instance of class
HOW TO DOWNLOAD ORCUT SITE VIDEOS IN PC WITH THE HELP OF MOZILL'S FIREFOX?
how to add a new table with variables and thier values into a imported file uisng proc import?
what is the draw back of Power builder
What are the limitation in using querystring in .net?
WHAT IS MAIN IMPORTANT THING IN SOFTWARE?
what you mean by mantis in IT interview? why we use mantis? advantage of mantis?