質問するログイン新規登録

質問編集履歴

4

hoge3

2018/05/24 00:45

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -22,7 +22,7 @@
22
22
  num = 0
23
23
  target_i = 100
24
24
  while (True):
25
- if if num target_i = 0
25
+ if if num % target_i == 0
26
26
  print("do the process")
27
27
   num = num + 1
28
28
  ```

3

hoge

2018/05/24 00:45

投稿

退会済みユーザー
title CHANGED
@@ -1,1 +1,1 @@
1
- WHILE 100回に一回処理を実施する
1
+ hogeWHILE 100回に一回処理を実施する
body CHANGED
@@ -27,7 +27,7 @@
27
27
   num = num + 1
28
28
  ```
29
29
 
30
- また 100回に1回だけでなく、200回に一回、325回に一回の場合にはどのように記載するか
30
+ また 100回に1回だけでなく、200回に一回、325回,50000回に一回の場合にはどのように記載するか
31
31
  具体的に教えて頂けると幸いです。
32
32
 
33
33
  お手数かけますが宜しくお願いします。

2

hoge2

2018/05/24 00:42

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -20,8 +20,9 @@
20
20
 
21
21
  ```ここに言語を入力
22
22
  num = 0
23
+ target_i = 100
23
24
  while (True):
24
- if >>>>> ここのコードが不明です。
25
+ if if num % target_i = 0
25
26
  print("do the process")
26
27
   num = num + 1
27
28
  ```

1

hoge

2018/05/24 00:41

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -23,6 +23,7 @@
23
23
  while (True):
24
24
  if >>>>> ここのコードが不明です。
25
25
  print("do the process")
26
+  num = num + 1
26
27
  ```
27
28
 
28
29
  また 100回に1回だけでなく、200回に一回、325回に一回の場合にはどのように記載するか