Click here to Skip to main content
15,891,033 members
Articles / Programming Languages / C

hello!world C program problem

Rate me:
Please Sign up or sign in to vote.
1.00/5 (2 votes)
22 Nov 2012CPOL 3.2K  
hello frndz , i got a problem in my code whenever i excute my code it dont show the obtained marks result whats the problem in it .. here is the code #include#includevoid main (){float physics,obt,a,b,d,e,f,g,c,maths,computer,english,urdu,pakstudies;float...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
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 .
Please Sign up or sign in to vote.
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...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Pakistan Pakistan
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions