You are on page 1of 1

Suma parnih i neparnih

Private Sub Command1_Click()


Dim ibrojac. ibroj As Integer
Psuma = 0
Nsuma = 0
nBroj = Txtnbroj.Text
For ibrojac = 1 To nbrojac
ibroj = txtbroj.Txt
if ibroj mod 2 = 0 Then
Psuma = Psuma + ibroj
MessageBox.Show(Suma parnih:,
& Psuma)
Else
Nsuma = Nsuma + ibroj
MessageBox..
Next
End Sub

You might also like