+ 2

code couch

Can I insert one my solution here and ask what's wrong with my code? why not accepted while everything is correct and works.

5th Jun 2020, 8:48 AM
hamid
hamid - avatar
10 Réponses
+ 2
here this is my code import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int color = sc.nextInt(); int base = 40; do{ System.out.println(((color*5) + base) + ((color*5 + base)/10)); sc.close(); } while( color < color); } }
5th Jun 2020, 8:51 AM
hamid
hamid - avatar
+ 2
it works the way the system want not accepted in test case 3 and 4
5th Jun 2020, 8:58 AM
hamid
hamid - avatar
+ 2
no paint costs
5th Jun 2020, 8:59 AM
hamid
hamid - avatar
+ 2
thanks anyway
5th Jun 2020, 9:02 AM
hamid
hamid - avatar
+ 2
I FOUND THE ANSWER THANKS EVERYBODY 👍👍
5th Jun 2020, 9:08 AM
hamid
hamid - avatar
Aujourd'hui en vedette
.
1 Votes
What?
0 Votes
HTML
0 Votes
FRC Coding?
1 Votes
Quiz duel
0 Votes
AI
2 Votes
help
0 Votes
APIs
1 Votes
Create Agent
0 Votes