SlideShare a Scribd company logo
1 of 1
Download to read offline
tell what the program will print to the screen (JAVA)
public class finjqm
{
public static void main(String[] args)
{
int x = 100, y = 7 , z = 5;
System.out.printf("%d %d %d ", x, y, z);
z *= xxx(x/2, y+5);
System.out.printf("%d %d %d ", x, y, z);
}
public static int xxx(int a, int b)
{
int c = 60;
System.out.printf("%d %d %d ", a, b, c);
c %= a + b / 2;
return c;
}
}
Solution
Output
100 7 5
50 12 60
100 7 20
The first line displays the values of x,y and z as initialised in main.
The second line displays the values of x,y and z inside static method xxx where x and y are sent
as arguments with value of x=x/2= 50 and y=y+5 ie 12 and value returned by xxx function is
stored in pointer to z.
So it will display 50 12 60
The third line displays the values of x ,y and z again x=100,y=7as initialised in main but the
value of z willbe z=z*value returned by function. Inside function c=60 ,c=c%(50+12/2)
c=c%56,c=60%56=4 so 4 is returned back to main. Here z=z÷4=5*4=20 so output is
100 7 20

More Related Content

Similar to tell what the program will print to the screen (JAVA)public class .pdf

Chapter 7 functions (c)
Chapter 7 functions (c)Chapter 7 functions (c)
Chapter 7 functions (c)hhliu
 
Trace the following part of codes step by step- Show exactly what it w.docx
Trace the following part of codes step by step- Show exactly what it w.docxTrace the following part of codes step by step- Show exactly what it w.docx
Trace the following part of codes step by step- Show exactly what it w.docxgtameka
 
Wap to implement bitwise operators
Wap to implement bitwise operatorsWap to implement bitwise operators
Wap to implement bitwise operatorsHarleen Sodhi
 
Computer graphics lab assignment
Computer graphics lab assignmentComputer graphics lab assignment
Computer graphics lab assignmentAbdullah Al Shiam
 
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_04-Mar-2021_L14...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_04-Mar-2021_L14...WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_04-Mar-2021_L14...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_04-Mar-2021_L14...MaruMengesha
 
Functions Practice Sheet.docx
Functions Practice Sheet.docxFunctions Practice Sheet.docx
Functions Practice Sheet.docxSwatiMishra364461
 
Review questions and answers
Review questions and answersReview questions and answers
Review questions and answersIIUM
 
CSE 103 Project Presentation.pptx
CSE 103 Project Presentation.pptxCSE 103 Project Presentation.pptx
CSE 103 Project Presentation.pptxTasnimSaimaRaita
 
Java 8 lambda expressions
Java 8 lambda expressionsJava 8 lambda expressions
Java 8 lambda expressionsLogan Chien
 

Similar to tell what the program will print to the screen (JAVA)public class .pdf (19)

Chapter 7 functions (c)
Chapter 7 functions (c)Chapter 7 functions (c)
Chapter 7 functions (c)
 
Revision1schema C programming
Revision1schema C programmingRevision1schema C programming
Revision1schema C programming
 
Tu1
Tu1Tu1
Tu1
 
Trace the following part of codes step by step- Show exactly what it w.docx
Trace the following part of codes step by step- Show exactly what it w.docxTrace the following part of codes step by step- Show exactly what it w.docx
Trace the following part of codes step by step- Show exactly what it w.docx
 
Wap to implement bitwise operators
Wap to implement bitwise operatorsWap to implement bitwise operators
Wap to implement bitwise operators
 
Revision1 C programming
Revision1 C programmingRevision1 C programming
Revision1 C programming
 
Computer graphics lab assignment
Computer graphics lab assignmentComputer graphics lab assignment
Computer graphics lab assignment
 
E10
E10E10
E10
 
Mcq cpup
Mcq cpupMcq cpup
Mcq cpup
 
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_04-Mar-2021_L14...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_04-Mar-2021_L14...WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_04-Mar-2021_L14...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_04-Mar-2021_L14...
 
Functions
FunctionsFunctions
Functions
 
Functions Practice Sheet.docx
Functions Practice Sheet.docxFunctions Practice Sheet.docx
Functions Practice Sheet.docx
 
Review questions and answers
Review questions and answersReview questions and answers
Review questions and answers
 
Basis graphics
Basis graphicsBasis graphics
Basis graphics
 
CSE 103 Project Presentation.pptx
CSE 103 Project Presentation.pptxCSE 103 Project Presentation.pptx
CSE 103 Project Presentation.pptx
 
Java 8 lambda expressions
Java 8 lambda expressionsJava 8 lambda expressions
Java 8 lambda expressions
 
Technical quiz 5#.pptx
Technical quiz 5#.pptxTechnical quiz 5#.pptx
Technical quiz 5#.pptx
 
C PROGRAMS
C PROGRAMSC PROGRAMS
C PROGRAMS
 
Java oops features
Java oops featuresJava oops features
Java oops features
 

More from anopticals

TF In Two Sample T-tests and in ANOVA procedures, we pay attention.pdf
TF In Two Sample T-tests and in ANOVA procedures, we pay attention.pdfTF In Two Sample T-tests and in ANOVA procedures, we pay attention.pdf
TF In Two Sample T-tests and in ANOVA procedures, we pay attention.pdfanopticals
 
TF The interaction plot shows a reveral of effect.TF The.pdf
TF  The interaction plot shows a reveral of effect.TF  The.pdfTF  The interaction plot shows a reveral of effect.TF  The.pdf
TF The interaction plot shows a reveral of effect.TF The.pdfanopticals
 
TF Large sample variance makes it easier to see means and mean dif.pdf
TF Large sample variance makes it easier to see means and mean dif.pdfTF Large sample variance makes it easier to see means and mean dif.pdf
TF Large sample variance makes it easier to see means and mean dif.pdfanopticals
 
TF None of the experiments effects were statistically imp.pdf
TF  None of the experiments effects were statistically imp.pdfTF  None of the experiments effects were statistically imp.pdf
TF None of the experiments effects were statistically imp.pdfanopticals
 
Tenecia is thinking of a number with 8 place values. The digit in th.pdf
Tenecia is thinking of a number with 8 place values. The digit in th.pdfTenecia is thinking of a number with 8 place values. The digit in th.pdf
Tenecia is thinking of a number with 8 place values. The digit in th.pdfanopticals
 
Ten children are seated in a row. How many different seating arrange.pdf
Ten children are seated in a row. How many different seating arrange.pdfTen children are seated in a row. How many different seating arrange.pdf
Ten children are seated in a row. How many different seating arrange.pdfanopticals
 
ten cards are numbered 1 to 10. The cards are shuffled thoroughly an.pdf
ten cards are numbered 1 to 10. The cards are shuffled thoroughly an.pdften cards are numbered 1 to 10. The cards are shuffled thoroughly an.pdf
ten cards are numbered 1 to 10. The cards are shuffled thoroughly an.pdfanopticals
 
Temperature changeA puddle holds 150 g of water. If 0.50 g of wate.pdf
Temperature changeA puddle holds 150 g of water. If 0.50 g of wate.pdfTemperature changeA puddle holds 150 g of water. If 0.50 g of wate.pdf
Temperature changeA puddle holds 150 g of water. If 0.50 g of wate.pdfanopticals
 
Technology has not contributed to the informal and formal leadership.pdf
Technology has not contributed to the informal and formal leadership.pdfTechnology has not contributed to the informal and formal leadership.pdf
Technology has not contributed to the informal and formal leadership.pdfanopticals
 
TB is a successful international telecommunication company with over.pdf
TB is a successful international telecommunication company with over.pdfTB is a successful international telecommunication company with over.pdf
TB is a successful international telecommunication company with over.pdfanopticals
 
Tay-Sachs is a recessive lethal disease in which there is neurologic.pdf
Tay-Sachs is a recessive lethal disease in which there is neurologic.pdfTay-Sachs is a recessive lethal disease in which there is neurologic.pdf
Tay-Sachs is a recessive lethal disease in which there is neurologic.pdfanopticals
 
Talk about Greece leaving the Euro has been reignited by the recent .pdf
Talk about Greece leaving the Euro has been reignited by the recent .pdfTalk about Greece leaving the Euro has been reignited by the recent .pdf
Talk about Greece leaving the Euro has been reignited by the recent .pdfanopticals
 
Take the transition matrices labeled P3 and P4 and determine the exp.pdf
Take the transition matrices labeled P3 and P4 and determine the exp.pdfTake the transition matrices labeled P3 and P4 and determine the exp.pdf
Take the transition matrices labeled P3 and P4 and determine the exp.pdfanopticals
 
Talk about six economies of worth, or sets of values, that we priori.pdf
Talk about six economies of worth, or sets of values, that we priori.pdfTalk about six economies of worth, or sets of values, that we priori.pdf
Talk about six economies of worth, or sets of values, that we priori.pdfanopticals
 
tanx = 25 then tanx = SolutionWell write tan 2x as a sum o.pdf
tanx = 25 then tanx = SolutionWell write tan 2x as a sum o.pdftanx = 25 then tanx = SolutionWell write tan 2x as a sum o.pdf
tanx = 25 then tanx = SolutionWell write tan 2x as a sum o.pdfanopticals
 
T denotes a fixed length of time fo = 1T is a frequency for sound w.pdf
T denotes a fixed length of time fo = 1T is a frequency for sound w.pdfT denotes a fixed length of time fo = 1T is a frequency for sound w.pdf
T denotes a fixed length of time fo = 1T is a frequency for sound w.pdfanopticals
 
t fhome study questions and answers business operations mana.pdf
t fhome  study  questions and answers  business  operations mana.pdft fhome  study  questions and answers  business  operations mana.pdf
t fhome study questions and answers business operations mana.pdfanopticals
 

More from anopticals (17)

TF In Two Sample T-tests and in ANOVA procedures, we pay attention.pdf
TF In Two Sample T-tests and in ANOVA procedures, we pay attention.pdfTF In Two Sample T-tests and in ANOVA procedures, we pay attention.pdf
TF In Two Sample T-tests and in ANOVA procedures, we pay attention.pdf
 
TF The interaction plot shows a reveral of effect.TF The.pdf
TF  The interaction plot shows a reveral of effect.TF  The.pdfTF  The interaction plot shows a reveral of effect.TF  The.pdf
TF The interaction plot shows a reveral of effect.TF The.pdf
 
TF Large sample variance makes it easier to see means and mean dif.pdf
TF Large sample variance makes it easier to see means and mean dif.pdfTF Large sample variance makes it easier to see means and mean dif.pdf
TF Large sample variance makes it easier to see means and mean dif.pdf
 
TF None of the experiments effects were statistically imp.pdf
TF  None of the experiments effects were statistically imp.pdfTF  None of the experiments effects were statistically imp.pdf
TF None of the experiments effects were statistically imp.pdf
 
Tenecia is thinking of a number with 8 place values. The digit in th.pdf
Tenecia is thinking of a number with 8 place values. The digit in th.pdfTenecia is thinking of a number with 8 place values. The digit in th.pdf
Tenecia is thinking of a number with 8 place values. The digit in th.pdf
 
Ten children are seated in a row. How many different seating arrange.pdf
Ten children are seated in a row. How many different seating arrange.pdfTen children are seated in a row. How many different seating arrange.pdf
Ten children are seated in a row. How many different seating arrange.pdf
 
ten cards are numbered 1 to 10. The cards are shuffled thoroughly an.pdf
ten cards are numbered 1 to 10. The cards are shuffled thoroughly an.pdften cards are numbered 1 to 10. The cards are shuffled thoroughly an.pdf
ten cards are numbered 1 to 10. The cards are shuffled thoroughly an.pdf
 
Temperature changeA puddle holds 150 g of water. If 0.50 g of wate.pdf
Temperature changeA puddle holds 150 g of water. If 0.50 g of wate.pdfTemperature changeA puddle holds 150 g of water. If 0.50 g of wate.pdf
Temperature changeA puddle holds 150 g of water. If 0.50 g of wate.pdf
 
Technology has not contributed to the informal and formal leadership.pdf
Technology has not contributed to the informal and formal leadership.pdfTechnology has not contributed to the informal and formal leadership.pdf
Technology has not contributed to the informal and formal leadership.pdf
 
TB is a successful international telecommunication company with over.pdf
TB is a successful international telecommunication company with over.pdfTB is a successful international telecommunication company with over.pdf
TB is a successful international telecommunication company with over.pdf
 
Tay-Sachs is a recessive lethal disease in which there is neurologic.pdf
Tay-Sachs is a recessive lethal disease in which there is neurologic.pdfTay-Sachs is a recessive lethal disease in which there is neurologic.pdf
Tay-Sachs is a recessive lethal disease in which there is neurologic.pdf
 
Talk about Greece leaving the Euro has been reignited by the recent .pdf
Talk about Greece leaving the Euro has been reignited by the recent .pdfTalk about Greece leaving the Euro has been reignited by the recent .pdf
Talk about Greece leaving the Euro has been reignited by the recent .pdf
 
Take the transition matrices labeled P3 and P4 and determine the exp.pdf
Take the transition matrices labeled P3 and P4 and determine the exp.pdfTake the transition matrices labeled P3 and P4 and determine the exp.pdf
Take the transition matrices labeled P3 and P4 and determine the exp.pdf
 
Talk about six economies of worth, or sets of values, that we priori.pdf
Talk about six economies of worth, or sets of values, that we priori.pdfTalk about six economies of worth, or sets of values, that we priori.pdf
Talk about six economies of worth, or sets of values, that we priori.pdf
 
tanx = 25 then tanx = SolutionWell write tan 2x as a sum o.pdf
tanx = 25 then tanx = SolutionWell write tan 2x as a sum o.pdftanx = 25 then tanx = SolutionWell write tan 2x as a sum o.pdf
tanx = 25 then tanx = SolutionWell write tan 2x as a sum o.pdf
 
T denotes a fixed length of time fo = 1T is a frequency for sound w.pdf
T denotes a fixed length of time fo = 1T is a frequency for sound w.pdfT denotes a fixed length of time fo = 1T is a frequency for sound w.pdf
T denotes a fixed length of time fo = 1T is a frequency for sound w.pdf
 
t fhome study questions and answers business operations mana.pdf
t fhome  study  questions and answers  business  operations mana.pdft fhome  study  questions and answers  business  operations mana.pdf
t fhome study questions and answers business operations mana.pdf
 

Recently uploaded

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 

Recently uploaded (20)

Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 

tell what the program will print to the screen (JAVA)public class .pdf

  • 1. tell what the program will print to the screen (JAVA) public class finjqm { public static void main(String[] args) { int x = 100, y = 7 , z = 5; System.out.printf("%d %d %d ", x, y, z); z *= xxx(x/2, y+5); System.out.printf("%d %d %d ", x, y, z); } public static int xxx(int a, int b) { int c = 60; System.out.printf("%d %d %d ", a, b, c); c %= a + b / 2; return c; } } Solution Output 100 7 5 50 12 60 100 7 20 The first line displays the values of x,y and z as initialised in main. The second line displays the values of x,y and z inside static method xxx where x and y are sent as arguments with value of x=x/2= 50 and y=y+5 ie 12 and value returned by xxx function is stored in pointer to z. So it will display 50 12 60 The third line displays the values of x ,y and z again x=100,y=7as initialised in main but the value of z willbe z=z*value returned by function. Inside function c=60 ,c=c%(50+12/2) c=c%56,c=60%56=4 so 4 is returned back to main. Here z=z÷4=5*4=20 so output is 100 7 20