منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب

نسخة كاملة : سؤال في الاري
أنت حالياً تتصفح نسخة خفيفة من المنتدى . مشاهدة نسخة كاملة مع جميع الأشكال الجمالية .
صباح الخير جميعا 




هذا شكل الفورم المطلوب والسؤال كالتالي وارجو المساعده  Heart

write a program that does the following:
o  Initializes the array by reading 10 input values from the user.
o  Prints the array.
o  Prints even numbers only.
o  Replace all even integers in an array by -1 and prints out the modified array.
PHP كود :
Dim n(9) As Integer
For 0 To 9
    n
(i) = Val(InputBox("Enter number:"))
Next

Label1
.Text String.Join(" "n)

For 
0 To 9
    
If (n(iMod 2) = 0 Then
        Label2
.Text &= n(i) & " "
    
End If
Next

For 0 To 9
    
If (n(iMod 2) = 0 Then
        n
(i) = -1
    End 
If
    
Label3.Text &= n(i) & " "
Next 

Val:
Returns the numbers contained in a string as a numeric value of appropriate type
(26-11-16, 09:44 AM)amgad525 كتب : [ -> ]
PHP كود :
Dim n(9) As Integer
For 0 To 9
    n
(i) = Val(InputBox("Enter number:"))
Next

Label1
.Text String.Join(" "n)

For 
0 To 9
    If 
(n(iMod 2) = 0 Then
        Label2
.Text &= n(i) & " "
 
   End If
Next

For 0 To 9
    If 
(n(iMod 2) = 0 Then
        n
(i) = -1
    End 
If
 
   Label3.Text &= n(i) & " "
Next 

Val:
Returns the numbers contained in a string as a numeric value of appropriate type

طيب ابغاه يكون ادخال الارقام في تيكست بوكس بدال InputBox