47 questions
The code below works the way I want it to. The cord is so dirty. I tried to shorten it several times, but it doesn't make much difference. Is there any mathematical formula that can help reduce code? ...
Currently, I am writing an if sentence as below. By the way, I want to compare the word WORDS with the corresponding objects and the equivalents of a specific word, is there a way to make it simpler?O...
Age = 30 If Age > 20:...print (Type) Please reply.
I'd like to modify the numbers in the QTY column as shown in the picture.The code in each QTY column is a code that changes only the last digit, such as txtAvailableQTY_0, txtAvailableQTY_1, txtAvaila...
for(int p = 0; p < index.length;p++) { int count=0; for(int q = p+1; q < index.length; q++) { if (Arrays.equals(index[p], index[q])) { count = count +1; } } if (count==7) { For (in...
// Enter your code hereimport datetime # API for 4 weeks Top20 statistics Date Processing for real timenow = datetime.datetime.now() # Current dateweeks4 = now + datetime.timedelta(weeks=-4) #current ...
x= 2000y= 3000z= 3500a = int (input (Number of Americano Sales: )))b = int (input (Café latte sales count: )))c = int (input (number of cappuccino sold: )))t = x*at = t + y*bt = t + z*cprint (Total sa...
I made a code that increases the date by a month using the if and when statements.And if you use a print between the codes, you can do whatever you want 201607201608201609201610201611201612The dates c...
if (Input.GetKeyDown(KeyCode.DownArrow)) { int current_health = 10; current_health += 30; Debug.Log (Recovery Potion Used +current_health);} The more I press it, the more I want to raise the blood....
I'm trying to determine if I'm overweight and underweight by BMI index. if BMI<18.5: print(Your BMI indicates that you are underweight.) if BMI>25: print(Your BMI indicates that you are overwei...
- 1 - | » |
© 2024 OneMinuteCode. All rights reserved.