Im new to programming and have found myself doing it because it is a requirement for my engineering course. I was wondering if there is anyway to limit the amount of decimal places displayed in the program when using a float or a double. Because I only need 3 decimal places shown not 6.
printf and scanf format codes
float f = 1.23456789;
Are you expecting like this?
Okay, got 3 places now. Thanks for the help.
One other question. In my program I am asking for input of date in form of dd/mm/yy, what declaration would I need to make in order to store a value in that form.
You can use string declaration
not a pointer since you want it to be variable so i would just say
Thanks, ill try it tonight