Working in data compression and trying to resolve the doubts
Working in data compression and trying to resolve the doubts
solve basic function problem, and done some assignment peoblem
program of scripting (password entry)
pswrd=secret
count=0
while (:)
do
while ($count!=3)
do
echo Enter Password
read pss
if [$pss!=$pswrd]
then
echo incorrect password try again
else
echo welcome
fi
`expr $count + 1`
done
echo want to change the password press y or n
read change
case $change in
yes|y|YES|Yes )
echo “Enter New Password”
read pswrd;;
[nN]* )
echo as you wish ;;
* ) echo “wrong choice”;;
esac
echo want to exit press y or n
read terminate
case $terminate in
yes|Y|y|YES )
echo BYE
exit 0;;
[nN]* )
echo welcome again;;
* ) echo wrong choice;;
esac
done
exit 0
………………..
error in first nested loop ??????????
master array created with some doubts.
i had created master array
i am in half way to create master array.
created master array
working on data compression
#include<stdio.h>
main()
{
int i=0; // value of i assigned
printf(“the value of i is %d\n”,i); // value of i printed
printf(“the ++i %d ++i %d \n”,++i ,++i); // prefix operations are
printf(“the i++ %d i++ %d \n”,i++ ,i++); // postfix operations are
return 0;
} /* predicted results
* the value of i is 0
* the ++i 2 ++i 2
*/ the i++ 2 i++ 3
BUT OUT PUT IS
/* the value of i is 0
* the ++i 2 ++i 2
*/ the i++ 3 i++ 2
CAN ANY ONE TELL ME THAT WHY IS “PRINTF” NOT SHOWING VALUE IN SEQUENCE RESPECTIVELY
AT LAST SIDDHARTH SIR WORDS GAVE ME THAT INSPIRATION BCZ OF WHICH ATLAST I TRIED SOMETHING NEW OF MY OWN N GOT SUCCEDDED IN IT….