Advertisement
Guest User

Untitled

a guest
Mar 15th, 2019
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 0.35 KB | None | 0 0
  1. class Algotitm  {
  2.     struct first {
  3.         int data;  
  4.         int pos;
  5.     }
  6.  
  7.     public static Algotitm() {
  8.         }
  9.         public static int sas(int[] mass){
  10.         first.data= 5;
  11.         first.pos = mass.length;
  12.         return first.data+first.pos;
  13.         }
  14. }
  15.  
  16. void main(){
  17.     int[] a = {1,3,0,1,2,3,2,1};
  18.     Algotitm.sas(a);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement