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

نسخة كاملة : ارجو المساعده
أنت حالياً تتصفح نسخة خفيفة من المنتدى . مشاهدة نسخة كاملة مع جميع الأشكال الجمالية .
Write a program to enter the name of a student and two marks of any subject by input box then computes the average and display the name and average in two labels
sum=0
count=0
x=inputbox("enter name of student",,)
read(n
for i = 1 to n
w=inputbox("enter subject",,)
next i
read (z
for i = 1 to z
x1=inputbox("enter mark1",,)
x2=inputbox("enter mark2",,)
)sum=sum+(x1+x2
count=count+1
next i
avr=sum/count
data1.feild1=avr
data1.feild2=name

...................................,
bye