that would be... a "funny" solution to the problem;)

But what about this equation:

a/b=0

the program should give {a==0, b!=0} as an answer and *never* a==b==0
 for obvious reasons ;)

--- In [email protected], chetan verma <[EMAIL PROTECTED]>
wrote:
>
> Is this your assignment ?
> well i can give you an answer
> as you say only one solution is needed
> just put all terms equal to zero. :)
> 
> -chetan
> 
> Praveen Kumar <[EMAIL PROTECTED]> wrote:                            
     
> solution for this program
>   
>  input is a equation which may contain alphabets(26) seperated by
+,-,/,* signs and at last = 0 you must find solutionss
>   
>  ex
>  input
> ab+abc=0
>   
>  output
>   
>  a=0 or b=0  or c=-1
>   
>  only one sollution is needed
>   
>  ex 
>  if input a+b=0
>  output  a=0,b=0..
>   
>  this was given to me as assignment i have writen code... can you
give me a better code... in c
> 
>   ----- Original Message ----
> From: Nuno Berneaud <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Tuesday, January 9, 2007 2:49:06 AM
> Subject: [c-prog] Re: Programming courses
> 
>   Hello Brett
> 
> On 8 Jan 2007, you wrote:
> 
> >> So, can you tell what languages should I aim for? I know this is
probably
> >> a too broad subject, but some basic guidelines would be welcome.
> 
> > I would go with C++. Stay away from COBOL, you'll hate it. I'm amazed
> > it is still around. :-)
> 
> I was told it was the best bet, since there are very few programmers
around...
> :)
> He's in the banking business and apparently COBOL is still big there.
> 
> Bye,
> 
> Nuno
> 
> 
> 
> 
>  
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
>      
>                        
> 
> 
> -chetan verma
> final year B-Tech(CSE)
> Indian School of Mines
> Dhanbad
> India
> 
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> 
> +919835108609
>  __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com
>


Reply via email to