Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Algotitm {
- struct first {
- int data;
- int pos;
- }
- public static Algotitm() {
- }
- public static int sas(int[] mass){
- first.data= 5;
- first.pos = mass.length;
- return first.data+first.pos;
- }
- }
- void main(){
- int[] a = {1,3,0,1,2,3,2,1};
- Algotitm.sas(a);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement