+ 1

JAVA

how to print multiple variables

18th Sep 2017, 3:41 PM
Sandeepan Dass
Sandeepan Dass - avatar
1 Answer
+ 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