JAVA | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

JAVA

how to print multiple variables

18th Sep 2017, 3:41 PM
Sandeepan Dass
Sandeepan Dass - avatar
1 Réponse
+ 10
example :::_ int x=2,y=3; //we want to print values of x & y System.out.print("x = " + x + "\n"+"y = "+y); //it will print values of x & y // similarily for n number of variables ... u can do this & print their values easily //hope u got it ☺
18th Sep 2017, 3:45 PM
Changed
Changed - avatar