منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب
كود لـعرض fibonacci series - نسخة قابلة للطباعة

+- منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب (http://vb4arb.com/vb)
+-- قسم : الأقسام التعليمية - المنتدى القديم (http://vb4arb.com/vb/forumdisplay.php?fid=90)
+--- قسم : مكتبة أكواد المنتدى (http://vb4arb.com/vb/forumdisplay.php?fid=111)
+---- قسم : مكتبة أكواد الفيجوال بيسك 6 (http://vb4arb.com/vb/forumdisplay.php?fid=116)
+---- الموضوع : كود لـعرض fibonacci series (/showthread.php?tid=6041)



كود لـعرض fibonacci series - RaggiTech - 17-10-12

كاتب الموضوع : Norhan Adel


كود :
Dim a As Integer, b As Integer, c As Integer, d As Integer, e As Integer

Private Sub Command1_Click()
List1.Clear
a = CInt(Text1.Text)
b = CInt(Text2.Text)
c = CInt(Text3.Text)
List1.AddItem a
List1.AddItem b
For d = 1 To c - 2
e = a + b
List1.AddItem e
a = b
b = e
Next d
End Sub