“Eğer” kod cevabı

eğer
#!/bin/bash
if [ $# -lt 1 ]
then
  echo "Usage: $0 file ..."
  exit 1
fi

echo "$0 counts the lines of code" 

l=0

for f in $*
do
 l=`wc -l $f | sed 's/^\([0-9]*\).*$/\1/'`
 echo "$f: $l"
done
eğer
//both solutions work but i think one is better :)
//do not write this:

function func1(a, b) {
    let condition = a >= b;
    let returnValue = false;

    if (condition === true) {
        returnValue = true;
        return returnValue;
    } else {
        returnValue = false;
        return returnValue;
    }

}

//write this instead:

function func2(a, b) {
    return a >= b
}
eğer
if(a!=b){
c=a+b;
}
eğer
if