Posts

Showing posts from June, 2018

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 in