Digit Processing [closed]
up vote
-4
down vote
favorite
Write a method named MyDigit that inputs integers n and i.
Your method should return the i'th digit of n.
For example, if the inputs are 89645 and 2, your method should return 6. Note that zeroth digit is 5, first dig-
it is 4 and second digit is 6 .
Thanks
java
closed as off-topic by πάντα ῥεῖ, Sᴀᴍ Onᴇᴌᴀ, Heslacher, 200_success, Toby Speight Nov 27 at 18:11
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Sᴀᴍ Onᴇᴌᴀ, Heslacher, 200_success, Toby Speight
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
-4
down vote
favorite
Write a method named MyDigit that inputs integers n and i.
Your method should return the i'th digit of n.
For example, if the inputs are 89645 and 2, your method should return 6. Note that zeroth digit is 5, first dig-
it is 4 and second digit is 6 .
Thanks
java
closed as off-topic by πάντα ῥεῖ, Sᴀᴍ Onᴇᴌᴀ, Heslacher, 200_success, Toby Speight Nov 27 at 18:11
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Sᴀᴍ Onᴇᴌᴀ, Heslacher, 200_success, Toby Speight
If this question can be reworded to fit the rules in the help center, please edit the question.
1
Welcome to Code Review! Unfortunately this post is off-topic for this site. Please read What topics can I ask about here? - note that it states "If you are looking for feedback on a specific working piece of code...then you are in the right place!" Also, when posting your question, there should have been text on the side that read "Your question must contain code that is already working correctly..." When you have fixed the code, please update it here and it can be reviewed."
– Sᴀᴍ Onᴇᴌᴀ
Nov 27 at 17:32
Homework assignment?
– Chad G
Nov 27 at 18:36
add a comment |
up vote
-4
down vote
favorite
up vote
-4
down vote
favorite
Write a method named MyDigit that inputs integers n and i.
Your method should return the i'th digit of n.
For example, if the inputs are 89645 and 2, your method should return 6. Note that zeroth digit is 5, first dig-
it is 4 and second digit is 6 .
Thanks
java
Write a method named MyDigit that inputs integers n and i.
Your method should return the i'th digit of n.
For example, if the inputs are 89645 and 2, your method should return 6. Note that zeroth digit is 5, first dig-
it is 4 and second digit is 6 .
Thanks
java
java
asked Nov 27 at 17:27
CodeZero2020
1
1
closed as off-topic by πάντα ῥεῖ, Sᴀᴍ Onᴇᴌᴀ, Heslacher, 200_success, Toby Speight Nov 27 at 18:11
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Sᴀᴍ Onᴇᴌᴀ, Heslacher, 200_success, Toby Speight
If this question can be reworded to fit the rules in the help center, please edit the question.
closed as off-topic by πάντα ῥεῖ, Sᴀᴍ Onᴇᴌᴀ, Heslacher, 200_success, Toby Speight Nov 27 at 18:11
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Sᴀᴍ Onᴇᴌᴀ, Heslacher, 200_success, Toby Speight
If this question can be reworded to fit the rules in the help center, please edit the question.
1
Welcome to Code Review! Unfortunately this post is off-topic for this site. Please read What topics can I ask about here? - note that it states "If you are looking for feedback on a specific working piece of code...then you are in the right place!" Also, when posting your question, there should have been text on the side that read "Your question must contain code that is already working correctly..." When you have fixed the code, please update it here and it can be reviewed."
– Sᴀᴍ Onᴇᴌᴀ
Nov 27 at 17:32
Homework assignment?
– Chad G
Nov 27 at 18:36
add a comment |
1
Welcome to Code Review! Unfortunately this post is off-topic for this site. Please read What topics can I ask about here? - note that it states "If you are looking for feedback on a specific working piece of code...then you are in the right place!" Also, when posting your question, there should have been text on the side that read "Your question must contain code that is already working correctly..." When you have fixed the code, please update it here and it can be reviewed."
– Sᴀᴍ Onᴇᴌᴀ
Nov 27 at 17:32
Homework assignment?
– Chad G
Nov 27 at 18:36
1
1
Welcome to Code Review! Unfortunately this post is off-topic for this site. Please read What topics can I ask about here? - note that it states "If you are looking for feedback on a specific working piece of code...then you are in the right place!" Also, when posting your question, there should have been text on the side that read "Your question must contain code that is already working correctly..." When you have fixed the code, please update it here and it can be reviewed."
– Sᴀᴍ Onᴇᴌᴀ
Nov 27 at 17:32
Welcome to Code Review! Unfortunately this post is off-topic for this site. Please read What topics can I ask about here? - note that it states "If you are looking for feedback on a specific working piece of code...then you are in the right place!" Also, when posting your question, there should have been text on the side that read "Your question must contain code that is already working correctly..." When you have fixed the code, please update it here and it can be reviewed."
– Sᴀᴍ Onᴇᴌᴀ
Nov 27 at 17:32
Homework assignment?
– Chad G
Nov 27 at 18:36
Homework assignment?
– Chad G
Nov 27 at 18:36
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
1
Welcome to Code Review! Unfortunately this post is off-topic for this site. Please read What topics can I ask about here? - note that it states "If you are looking for feedback on a specific working piece of code...then you are in the right place!" Also, when posting your question, there should have been text on the side that read "Your question must contain code that is already working correctly..." When you have fixed the code, please update it here and it can be reviewed."
– Sᴀᴍ Onᴇᴌᴀ
Nov 27 at 17:32
Homework assignment?
– Chad G
Nov 27 at 18:36