Java Output Formatting | HackerRank | Solution | 5

Pubblicato il: 08 agosto 2024
sul canale di: Get Answer with Jeeva
4
0

Java Output Formatting | Hackerrank | Solution | 5



`System.out.printf("%03d",x);` prints the value of `x` with:

Leading zeros if necessary
A minimum width of 3 characters

Example: `x = 1` prints "001"




15 space and print int value

example:

string value is java
iny value is 60

java is 4 letter word

15 - 4 = 11
after print java 11 space print 60



#code #getanswerwithjeeva #java #questionanswer #questions #hackerranksolution


In questa pagina del sito puoi guardare il video online Java Output Formatting | HackerRank | Solution | 5 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Get Answer with Jeeva 08 agosto 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 4 volte e gli è piaciuto 0 spettatori. Buona visione!