...VB数値が整数の場合それを書いてくださいElseは何も表示しません、どうすればいいですか?
Dim x As Integer
Dim isn As Decimal
Dim fsn As Decimal
Dim inc As Decimal
For m = isn To fsn Step inc
Dim r As String = x * m
If r.Contains(".") Then
Else
Console.WriteLine(r)
End If
Next
Console.ReadLine()
...しかし、プログラムだけで何もしない...私は何ができるの?私を助けてください!!これを達成するための多くの方法がありますが、ユーザー
Sub Main()
Dim x As Integer = Console.ReadLine
Dim isn As Decimal = Console.ReadLine
Dim fsn As Decimal = Console.ReadLine
Dim inc As Decimal = Console.ReadLine
For m = isn To fsn Step inc
Dim r As Double = x * m
Dim r_string As String = r.ToString
If r_string.Contains(".") Then
Else
Console.WriteLine(r)
End If
Next
Console.ReadLine()
End Sub
誰かがこの答えをdownvotedなぜinc' – Subaz