![]() |
ugent.. pls help with my program
pls help with my school project... its a program that get the factors of an algebriac expression... my problem is the output... when i input a = 1, b = 5, c =6 the output is correct but when i input a = 5, b = 26, c = 24 the output is (4x+6)(1x+5) the correct output must be (5x+6)(1x+4)..
here's my wrong work.. pls help me correct it.. i've been working it for 2 weeks and i still can't make it right.. Code:
#include<stdio.h> |
Re: ugent.. pls help with my program
uhm.. can u give me a source code of this program... pls
|
Re: ugent.. pls help with my program
Quote:
|
Re: ugent.. pls help with my program
Please explain the algorithm, and what each variable is used for. Single letter variable names tell us nothing about what they are for.
Have you tried to find out where the values in the variables start going wrong? If you print the relevant variables after each line, then you will be able to follow through the program working out what the values should be, and checking after each line what the values are. Then you will be able to spot the differences and then you can work out why it is going wrong. |
| All times are GMT +5.5. The time now is 12:58. |