تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
[VB.NET] سؤال في الاري
#1
Question 
صباح الخير جميعا 




هذا شكل الفورم المطلوب والسؤال كالتالي وارجو المساعده  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.
الرد }}}
تم الشكر بواسطة:
#2
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
الرد }}}
تم الشكر بواسطة: a_abdullah , a_abdullah
#3
(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
الرد }}}
تم الشكر بواسطة:


التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم