programming

wap to find the given number is divisible by 3 and7 or not.

cls
input"enter any number";n
if n mod 3=0 and n mod 7=0 then
print "the number is divisible by 3 and 7"
else
print"the number is not divisible by 3 and 7"
end if 
end

wap to find he given number is positive or negative.

cls
input"enter any number";n
if n>0 then
print"the number is positive"
else
print"the number is negative"
end if
end

wap to find the given number is odd or even

cls
input"enter any number";n
if n mod 2=0 then
print"the number is even"
else
print"the nmber is odd"
end if
end

wap to find the smallest number among two.

cls 
input"enter any two number";a,b
if a<b then
print"the smallest no is";a
else
print "the smallest no is";b
end if
 end

wap to find the number is divisible is divisible by 13 or not

cls
input"enter any number";n
if n mod 13=0 then
print"the number is divisible by 13"
else 
print"the number not divisible by 13"
end if 
end

wap to find the greatest among three number

cls
input "enter any three number",a,b,c
if a>b and a> then 
print "the greatest no is"; a
else if b>a and b>c then 
print "the greatest no is ";b
else print "the greatest no is ";c
end If 
end

wap to find a person is elegible to drive or not [age>=16]

cls 
input "enter your age ";a
if a>=16 then
print "the peron is elegible to drive "
else
print "the person is not eligible be to drive"
end if 
end 

write a prograne to input a year nad display whether year is a leap year or not

cls 
inpute "enter year "; y
if y  mod 4=0 and mod 100<=0 or y mod 400=0 then
print "the gien year is leap year"
else 
print "the giver year is nor leap year"
end if 
end

wap to find the number is positive ,negative or zero.

input "enter number "; n
if N<0 then 
Print "the number is positive"
else if n<0 then 
print "the number is negative"
else 
Print "the number is zero"
end if 
end

wap to find middle number among three number

cls 
input " enter any number ";a,b,c
If a>b and a<c or a<b and a>b then
print "the middle is ";a
else if b>a and b<c or b<a and b>c then
print "the middle is ";b
else 
print "the middle is ";c
end if 
 end





Comments

Popular posts from this blog

My experience with my jagat mandir family

Experience of picnic

My father