Posts

Showing posts from January, 2016

Programming Is Kinda Fun - Part 2

Image
1. WAP to display area of rectangle. => CLS      INPUT "Enter length" ; l      INPUT "Enter breadth" ; b      A = l * b      PRINT "Area of rectangle = "; A      END 2. WAP to display area of square. =>CLS     INPUT "Enter length" ; l     A = l ^ 2     PRINT "Area of square = " ; A     END 3. WAP to display area of circle. =>CLS     INPUT "Enter radius" ; r     A =  22/7 ^ 2     PRINT "Area of circle = " ; A     END 4. WAP to display perimeter of rectangle. =>CLS     INPUT "Enter length" ; l     INPUT "Enter breadth" ; b     P = 2 * (l + b)     PRINT "Perimeter of rectangle  = " ; P     END 5. WAP to display perimeter of square. =>CLS     INPUT "Enter length" ; l     P = 4 * l     PRINT ...

Programming Is Kinda Fun

Image
1. WAP to enter any 2 numbers and display its sum. => CLS      INPUT "Enter first number"; A      INPUT "Enter second number"; B      S = A + B      PRINT "Sum ="; S      END 2. WAP to enter any 3 numbers and display its product. => CLS      INPUT "Enter first number"; A      INPUT "Enter second number"; B      INPUT "Enter third number"; C      P = A * B * C      PRINT "Product = "; P      END 3. WAP to enter any 5 numbers and display its average. => CLS      INPUT "Enter first number"; A      INPUT "Enter second number"; B      INPUT "Enter third number"; C      INPUT "Enter fourth number"; D      INPUT "Enter fifth number"; E      AVG = (A+B+C+D+E)/5      PRINT "Average = "; AVG ...