Alternatives
Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
22 Nov 2012Chris Reynolds (UK)
The format of your printf is wrong:printf("\n %.1f",physics,"\t %.1f",a);Needs to beprintf("\n %.1f\t %.1f",physics, a);You only have one format string and then a list of the vriables you are substituting in .
22 Nov 2012Richard MacCutchan
Some suggestions:Use meaningful variable names; a,b,c,d etc are useless and easy to misuse.Use proper English (or even Urdu) in your printed messages. Cryptic 'txtspk' like "u r" makes things more difficult to understand.Indent your code properly so you can easily see the boundaries of...
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.