5. Java Output Formatting - Introduction || java || Hackerrank

preview_player
Показать описание
The % Format Specifiers

The % specifiers that you can usedC are:

Usual variable type Display

%c char single character

%d (%i) int signed integer

%e (%E) float or double exponential format

%f float or double signed decimal

%g (%G) float or double use %f or %e as required

%o int unsigned octal value

%p pointer address stored in pointer

%s array of char sequence of characters

%u int unsigned decimal

%x (%X) int unsigned hex value


if you like my content then please like share and subscribe.
Рекомендации по теме
Комментарии
Автор

i follow yours step but ans is wrong why??

BhagyashreeBelote
Автор

just what i was looking for, it helped me a lot, thanks.

eriksonnapanvillagaray
Автор

Very nice video and explanation brother thankyou so much 🙏🏼🙏🏼🙏🏼

And your starting was awesome...😆

someshsahu
Автор

i tried to solve it as they have given the condition of aphabat but it does not works

sarwatkhan
Автор

finally got best explaination, thanks buddy, keep contributing.

anshuprakash
Автор

why do we use printf instead of println

manvendrapal
Автор

This exact answer doesnt work for me. Everything is the same and it still says wrong

ggen
Автор

It is great explained, may I know Why have we used for loop here.

purushothamreddy.j
Автор

what if the integer is 13 digit long instead of 3 and we need to format the integer with 1 instead of 0?

rayanraj
Автор

Y we use printf
We can also use in Java?

premapriya
Автор

bolna seekh lo pehle..tab video banana

thegoodlad
visit shbcf.ru