Program:
enter the year
read y
a=`expr $y % 4`
b=`expr $y % 100`
c=`expr $y % 400`
if [ $a -eq 0 -a $b -ne 0 -o $c -eq 0 ]
then
echo $y is leap year
else
echo $y is not leap year
fi
Input/OutPut
2010
2010 is not leap year
10_89, HOD MCA Department, The PAS College, Pedanandipadu-PO, Guntur-Dt, Andhrapradesh-522235, India.
If you are looking for a succeed work at home or whether you desire getting money on the internet; yes, eventually, you located it!
No pc knowledges needed. You may be completely new to manage our system - you don't need ANY experience. This is really easy.
You can stay at home and work at your free time. Even whether you don't have pc you may do this task in Online cafe or on Internet cell phone.
We make a web-shop for you with ready to operate e-commerce solution. Your work is pretty simple; you have to submit data about your web-shop to the Web engines. We will provide you with very easy step-by-step instruction how to do this. The typical instruction requests you to open a web webpage and fill in a form with material regarding your online-shop and products.
You will be paid from US $20.00 to US 180.00 for each sale which is comes using your internet-shop.
There is no limitation for your income. No matter where you live your commissions are 100% assured.
Register Now...Apply now to have economic independence. All you need is the simple: apply now and havepersonal online company!
This comment has been removed by the author.
ReplyDeletedaysinyear=`cal | grep -v $ | grep -v [a-z] | wc -w`
ReplyDeleteif daysinyear = 366 then leapyear
thanks Great work
ReplyDelete#!/bin/bash
ReplyDeleteecho "Please Enter a year"
read year
echo Entered year is : $year
d=`expr $year % 4`
if [ $d -eq 0 ]
then echo "$year is a leap year"
else echo "$year is not a leap year"
fi
This comment has been removed by the author.
ReplyDeleteGreat Job Sir
ReplyDeleteIs it working?
ReplyDelete