Error Correction in C++

  • Thread starter Thread starter puneet28
  • Start date Start date
  • Replies Replies 13
  • Views Views 8,315
looks like your code is stuck over here while(qc<qr) because when the condition is met there's no exit point and the while loop keeps running
 
Also I don't see why you are using decimal numbers with pow function. A float number raised to anything will return a floating value only.
 
Also I don't see why you are using decimal numbers with pow function. A float number raised to anything will return a floating value only.

your trust from IIT brand will be broken, if I tell you reality. Prof here marked mistake in my tutorial sheet when I wrote 2 in place of 2.0 for float :D :D
 
Back