I need answer for this code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I need answer for this code

import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int amount = scanner.nextInt(); //your code goes here int payment=10; int bal=10000; do { System.out.println(bal); bal=payment%amount; } while(amount > 4); } }

1st Mar 2022, 7:59 AM
Jayasree
2 Answers
+ 2
Share a saved code link instead, so you can describe the task requirement, and people doesn't have to ask you again. If you write the code directly like that, you may not have enough space to write task Description. https://www.sololearn.com/post/75089/?ref=app
1st Mar 2022, 8:04 AM
Ipang
+ 1
Thank you
1st Mar 2022, 8:08 AM
Jayasree