Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- alumnos=('pedro' 'juan' 'diego')
- len=${#alumnos[@]}
- echo ${alumnos[0]}
- for(( i=0; i<$len; i++ ))
- do
- echo 'Asistio '${alumnos[${i}]}'? :'
- read asistencia[$i]
- # no se que queri hacer con la asistencia
- done
- for(( i=0; i<$len; i++ ))
- do
- if [ ${asistencia[${i}]} -eq 0 ]; then
- echo ${alumnos[${i}]}' asistio'
- else
- echo ${alumnos[${i}]}' no asistio'
- fi
- # no se que queri hacer con la asistencia
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement