if문 tag

47 questions


1 answers
120 views
0
If conditional questions: if i == "What time is it?" or "What time is it now?" or "Tell me the current time."

import datetimeimport sysstart_time = datetime.datetime.now()def bitbox (): print (Hitting the drum)i = input (Did you call Siri?[Yes/No])ifi == Yes: print (I'm listening...) input (Enter=>)Ifi == ...

2 years ago

2 answers
110 views
0
How can I use IF and Const statements together in TypeScript?

if (process.platform == 'win32'){ constos: string = I'm win32.} } else if (process.platform == 'linux'){ constos: string = I'm Linux.} } else { Constos: string = Unknowns Target.}console.log(os)I want...

2 years ago

1 answers
39 views
0
While implementing the pectorial function, a question arose.

def fact(n): if <= 1: #If the inequality does not go in, a compilation error will be left. return 1 else: return n * fact(n-1)print(fact(4))As I wrote in the comment above, there is a compilation...

2 years ago

1 answers
103 views
0
Python if conditional statement error

# # registration number=rnrn = int (input (Please enter the resident registration number minus (-))year = int(rn/100000000000)month = int(rn/1000000000) - year*100day = int(rn/10000000) - (int(rn/1000...


1 answers
93 views
0
c++ Find the smallest number

int i, min = 0; for (i = 0; i < 10; i++) { cin >> number; if (i == 0) // Condition A min = number; else if (min > number) // Condition B min = number; } cout << min;Hello, the...

2 years ago

1 answers
111 views
0
Shell Script if Statement Conditions

It is the condition of the if statement to check leap year.if[ ((${year}%4 -eq 0 ) && (${year}%100 -ne 0 )) || (${year}%400 -eq 0) ]then ... fiThe conditions I put in are, Once every four year...

2 years ago

1 answers
52 views
0
Questions about Arduino Loop Control

If the illumination value is greater than or equal to a certain illumination value, rotate 1440 degrees counterclockwiseI'm working on a program that rotates 1440 degrees clockwise if it's small If yo...

2 years ago

1 answers
89 views
0
I don't know what's wrong with the C language if statement. ( if (0 < num1 < 45) )

#include <stdio.h>void main(){ int num1; scanf_s(%d, &num1); if (0 < num1 < 45) printf(a); else if (90 < num1 < 160) printf(b); else printf (None;}What's wrong is only a and n...

2 years ago

2 answers
91 views
0
Program Python that outputs by adding both odd values between two numbers

How should the condition extraction be written in a program that takes two numbers and outputs both odd values between them? I'm trying to study alone, but I'm not sure, so I post a question.

2 years ago

1 answers
44 views
0
I'm trying to compare variables in other python files, but I can't compare them

#test.pyNOW_TIME = 23:35:00#Discord.pyimport discordfrom discord.ext import commandsfrom discord.utils import getimport datetimeimport asyncioimport timeimport load_json_variable as variableimport tes...

2 years ago
« - 4 - »

© 2024 OneMinuteCode. All rights reserved.