Advertisement
Guest User

Untitled

a guest
Nov 21st, 2015
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. provjera A polja
  2. i = 0
  3. start:
  4. a[i] = TextWindow.ReadNumber()
  5.  
  6. If  0 < a[i] And a[i] <= 50 Then
  7.   TextWindow.WriteLine("uspjesan unos")
  8. Else
  9.   i = i+1
  10.   Goto start
  11. EndIf
  12. 'Provjera B polja
  13. i1 = 0
  14. start1:
  15. b[i1] = TextWindow.ReadNumber()
  16.  
  17. If  5 <= b[i1] And b[i1] <= a[i] Then
  18.   TextWindow.WriteLine("uspjesan unos")
  19. Else
  20.   i1 = i1+1
  21.   Goto start1
  22. EndIf
  23. ' Ispisivanje krivo unesenih brojeva
  24. TextWindow.WriteLine("")
  25. TextWindow.WriteLine("krivo uneseni pokusaji")
  26. f = Array.GetItemCount(a)
  27. g = f -1
  28. r = 0
  29. For s = 1 To g  
  30.   TextWindow.WriteLine(a[r])
  31.   r = r+1
  32.   endfor
  33.  
  34.   f1 = Array.GetItemCount(b)
  35. g1 = f1 -1
  36. r1 = 0
  37. For s1 = 1 To g1  
  38.   TextWindow.WriteLine(b[r1])
  39.   r1 = r1+1
  40.   endfor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement