The printf() method explanation needed
Could anyone give some info on the printf() method..
I know we can put %d and %s in the format argument so that it takes a string data type
and a decimal data type but apart from that are there any other uses of printf()?
some simple examples will do the job i guess..
Re: The printf() method explanation needed
I think it's the only reason you use the printf() method.
In other methods like print or println it just only print the thing in the computer screen but you can't format the output.
but with the pritnf you can format it.. like the thing you want to printout can be formatted to two decimal like that..
Other than that i think it's the only reason you use this printf();