Posts

Showing posts from August, 2017
1)       Write a program that asks marks in any subject and display the message “Result Pass” if the input number is greater than 40. CLS INPUT “Enter marks in computer”; C IF C>= 40 THEN PRINT “Result Pass” ELSE PRINT “Result fail” END 2)       Write a program that asks any two number and display the greater one. CLS INPUT “Enter first number”; A INPUT “Enter second number”; B IF A>B THEN PRINT “The greater number is”; A ELSE PRINT “The greater number is”; B END IF END 3)       Write a program that checks whether the supplied number is odd or even. CLS INPUT “Enter any number”; N IF N MOD 2= 0 THEN PRINT “Even number” ELSE PRINT “Odd number” END IF END 4)       Write a program that asks any two number and displays the difference between greater and smaller one. CLS INPUT “Enter first number”; A INPUT “Enter second number”; B IF A>B THE...