A Corner for Computer Learners

Some Modular Programs

  • to print square and cube of first 10 natural numbers:    FUNCTION            SUB

  • to print the input string in middle line :    FUNCTION            SUB

  • to input radius and print the circumference of a circle :    FUNCTION            SUB

  • to print the simple interest :    FUNCTION            SUB

  • to print the smallest number among 3 input numbers :    FUNCTION            SUB

  • to check whether the input number is odd or even :    FUNCTION            SUB

  • to print the middle number (neither smallest nor largest) among 3 input numbers :    FUNCTION            SUB

  • to print the factors of an input numbers :    FUNCTION            SUB

  • to print the reverse of input number :    FUNCTION            SUB

  • to check whether the input number is palindrome or not :    FUNCTION            SUB

  • to check whether the input number is armstrong or not :    FUNCTION            SUB

  • to print the factorial of input number :    FUNCTION            SUB

  • to print the sum of digit of input number :    FUNCTION            SUB

  • to print the product of digit of input number :    FUNCTION            SUB

  • to print HCF and LCM of two input numbers SUB

  • to print the LCM of two input numbers FUNCTION

  • to check whether the input number is perfect square or not:   FUNCTION            SUB

  • to check whether the input number is perfect number or not
    [perfect number: any number that is equal to sum of its factors excluding itself]:
    FUNCTION            SUB

  • to print the reverse of input string :    FUNCTION            SUB

  • to check whether the input string is palindrome or not :    FUNCTION            SUB

  • to count the number of words in input string :    FUNCTION            SUB

  • to count the number of vowels :    FUNCTION            SUB

  • to print the string removing vowels :    FUNCTION            SUB

  • to print the word in alternate case :    FUNCTION            SUB

  • to print word by changing case :    FUNCTION            SUB

  • to print consonant characters from word :   FUNCTION            SUB

  • to check whether the input number is prime or composite:    FUNCTION            SUB

  • to print armstrong numbers from 100 to 500 SUB

  • to print palindrome numbers from 100 to 1000 SUB

  • to print first 10 prime numbers SUB

  • to print prime numbers from 1 to 50 SUB

  • to convert number from binary to decimal :    FUNCTION            SUB

  • to convert number from decimal to binary :    FUNCTION            SUB

  • to convert from decimal to octal number :    FUNCTION            SUB

  • to convert decimal to hexadecimal number :    FUNCTION            SUB

  • to count uppercase, lowercase, number and special characters SUB



© All rights reserved to Niraj Balami