- 1
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner
I tried it. Help me out
4 ответов
+ 4
Hello Saakshi sinha
Scanner scanner = new Scanner();
Then it works.
+ 1
Posting duplicate questions won't help.
https://www.sololearn.com/Discuss/2670154/?ref=app
https://www.sololearn.com/Discuss/2670155/?ref=app
The reason why no one is able to help you is because you are not showing your efforts about your assignments. No one will provide you the solution unless they don't want you to learn.
Please show your attempt so far regarding this problem so people may help you by giving hints etc.. Thanks and Happy Coding!
https://www.sololearn.com/Blog/38/8-simple-rules-to-get-help-from-the-community
https://www.sololearn.com/Discuss/1316935/welcome-to-sololearn-forum
0
import java.util.Scanner;
public class Program {
public static void main(String[] args) {
- 1
import java.util.Scanner;
public class Program
{
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int amount = scanner.nextInt();
int loan;
//your code goes here
for(int i=1;i<=3;i++)
{
loan =amount/10;
amount-=loan;
}
System.out.println(amount);
}
}