SlideShare a Scribd company logo
1 of 1
import java.util.Scanner; public class MathFunctions { public static void main (String [] args) {
Scanner scnr = new Scanner(System.in); double x; double y; double z; x = scnr.nextDouble(); y
= scnr.nextDouble(); /* Your code goes here */ System.out.printf("%.1fn", z); // This will output
z with 1 decimal place. } }

More Related Content

More from RyanEAcTuckern

Identify the principal diagnosis and secondary diagnosis and place the.docx
Identify the principal diagnosis and secondary diagnosis and place the.docxIdentify the principal diagnosis and secondary diagnosis and place the.docx
Identify the principal diagnosis and secondary diagnosis and place the.docx
RyanEAcTuckern
 
I NEED HELP!!!!!! DCOM 224 A new systems administrator has a quest.docx
I NEED HELP!!!!!!   DCOM 224   A new systems administrator has a quest.docxI NEED HELP!!!!!!   DCOM 224   A new systems administrator has a quest.docx
I NEED HELP!!!!!! DCOM 224 A new systems administrator has a quest.docx
RyanEAcTuckern
 

More from RyanEAcTuckern (20)

III- Thres fair tetrahedra (atme as the one in part I except (tnakenta.docx
III- Thres fair tetrahedra (atme as the one in part I except (tnakenta.docxIII- Thres fair tetrahedra (atme as the one in part I except (tnakenta.docx
III- Thres fair tetrahedra (atme as the one in part I except (tnakenta.docx
 
III Cld the kon to vow be lablo ol saramary satestes H0w1v2-0H1W1v2-0.docx
III Cld the kon to vow be lablo ol saramary satestes H0w1v2-0H1W1v2-0.docxIII Cld the kon to vow be lablo ol saramary satestes H0w1v2-0H1W1v2-0.docx
III Cld the kon to vow be lablo ol saramary satestes H0w1v2-0H1W1v2-0.docx
 
Imagine that you are planning an upcoming social media campaign for on.docx
Imagine that you are planning an upcoming social media campaign for on.docxImagine that you are planning an upcoming social media campaign for on.docx
Imagine that you are planning an upcoming social media campaign for on.docx
 
Iguana Incorporated paid a dividend of $1-85 this year- The dividend i.docx
Iguana Incorporated paid a dividend of $1-85 this year- The dividend i.docxIguana Incorporated paid a dividend of $1-85 this year- The dividend i.docx
Iguana Incorporated paid a dividend of $1-85 this year- The dividend i.docx
 
III- Assume 20 animals per group- Treatment is daily by oral gavage wi.docx
III- Assume 20 animals per group- Treatment is daily by oral gavage wi.docxIII- Assume 20 animals per group- Treatment is daily by oral gavage wi.docx
III- Assume 20 animals per group- Treatment is daily by oral gavage wi.docx
 
If the three subunits of a vertebrate ATP synthase are in the followi.docx
If the three  subunits of a vertebrate ATP synthase are in the followi.docxIf the three  subunits of a vertebrate ATP synthase are in the followi.docx
If the three subunits of a vertebrate ATP synthase are in the followi.docx
 
If the CPI was 9-9 in 1913 and 256 in 2019 - what was the inflation ra.docx
If the CPI was 9-9 in 1913 and 256 in 2019 - what was the inflation ra.docxIf the CPI was 9-9 in 1913 and 256 in 2019 - what was the inflation ra.docx
If the CPI was 9-9 in 1913 and 256 in 2019 - what was the inflation ra.docx
 
If Dorothy went to the prom with Daniel in early May- It was the perfe.docx
If Dorothy went to the prom with Daniel in early May- It was the perfe.docxIf Dorothy went to the prom with Daniel in early May- It was the perfe.docx
If Dorothy went to the prom with Daniel in early May- It was the perfe.docx
 
Identify the principal diagnosis and secondary diagnosis and place the.docx
Identify the principal diagnosis and secondary diagnosis and place the.docxIdentify the principal diagnosis and secondary diagnosis and place the.docx
Identify the principal diagnosis and secondary diagnosis and place the.docx
 
Identify the following formula- DMUsed Direct Labor + Allocated MOH Co.docx
Identify the following formula- DMUsed Direct Labor + Allocated MOH Co.docxIdentify the following formula- DMUsed Direct Labor + Allocated MOH Co.docx
Identify the following formula- DMUsed Direct Labor + Allocated MOH Co.docx
 
identify Each stage of meiosis and briefly explain what occurs during.docx
identify Each stage of meiosis and briefly explain what occurs during.docxidentify Each stage of meiosis and briefly explain what occurs during.docx
identify Each stage of meiosis and briefly explain what occurs during.docx
 
I- Construct a membership table for the following combination of the s.docx
I- Construct a membership table for the following combination of the s.docxI- Construct a membership table for the following combination of the s.docx
I- Construct a membership table for the following combination of the s.docx
 
I'm working with Android Studio to make a basic project- Your origina.docx
I'm working with Android Studio to make a basic project-  Your origina.docxI'm working with Android Studio to make a basic project-  Your origina.docx
I'm working with Android Studio to make a basic project- Your origina.docx
 
I- A-i- A third rodent of this type was found to have a z-score of 2-1.docx
I- A-i- A third rodent of this type was found to have a z-score of 2-1.docxI- A-i- A third rodent of this type was found to have a z-score of 2-1.docx
I- A-i- A third rodent of this type was found to have a z-score of 2-1.docx
 
I need a help with my scenario question below on the course ACCCES CON.docx
I need a help with my scenario question below on the course ACCCES CON.docxI need a help with my scenario question below on the course ACCCES CON.docx
I need a help with my scenario question below on the course ACCCES CON.docx
 
i nut the ndeated z score- The graph depicts the standard normal ditkb.docx
i nut the ndeated z score- The graph depicts the standard normal ditkb.docxi nut the ndeated z score- The graph depicts the standard normal ditkb.docx
i nut the ndeated z score- The graph depicts the standard normal ditkb.docx
 
I need this solution in C language - Monitor the input signals and de.docx
I need this solution in C language  - Monitor the input signals and de.docxI need this solution in C language  - Monitor the input signals and de.docx
I need this solution in C language - Monitor the input signals and de.docx
 
I need help with this- circle the correct choice within the parenthesi.docx
I need help with this- circle the correct choice within the parenthesi.docxI need help with this- circle the correct choice within the parenthesi.docx
I need help with this- circle the correct choice within the parenthesi.docx
 
I NEED HELP!!!!!! DCOM 224 A new systems administrator has a quest.docx
I NEED HELP!!!!!!   DCOM 224   A new systems administrator has a quest.docxI NEED HELP!!!!!!   DCOM 224   A new systems administrator has a quest.docx
I NEED HELP!!!!!! DCOM 224 A new systems administrator has a quest.docx
 
Hypospadias repair and chordee repair Find the code answer and rationa.docx
Hypospadias repair and chordee repair Find the code answer and rationa.docxHypospadias repair and chordee repair Find the code answer and rationa.docx
Hypospadias repair and chordee repair Find the code answer and rationa.docx
 

Recently uploaded

會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
cupulin
 

Recently uploaded (20)

ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 

import java-util-Scanner- public class MathFunctions { public static v.docx

  • 1. import java.util.Scanner; public class MathFunctions { public static void main (String [] args) { Scanner scnr = new Scanner(System.in); double x; double y; double z; x = scnr.nextDouble(); y = scnr.nextDouble(); /* Your code goes here */ System.out.printf("%.1fn", z); // This will output z with 1 decimal place. } }