QBasic Program to Check if a Number is Palindrome or not

Write a program to check if a number is palindrome or not in QBasic. For example, Input 12321 Output Palindrone Input 43823 Output Not Palindrome What is Palindrome number? A number is palindrome if it is equal to it’s reverse. For example, reverse of 121 is also 121, this implies 121 is palindrome whereas reverse … Read more QBasic Program to Check if a Number is Palindrome or not

Program to Print Truth Table of Given Boolean Expression

Write a program to print truth table of any given Boolean Expression. For example, Input A.B’+C Output A         B         C         f 0         0         0         0 0         0         1         1 0         1         0         0 0         1         1         1 1         0         0         1 1         0         1         1 1         1         0         0 1         1         1         1 Steps Ask … Read more Program to Print Truth Table of Given Boolean Expression

QBasic Program to Check if Number is Even or Odd

Write a program in QBasic to check if the input number is even or odd. Program using IF..ELSE Program using only IF Program using Select Case Program using subroutine Program using subroutine – Passing input as an argument Program using Function Program using Function – Passing input as an argument Program using Function – Passing … Read more QBasic Program to Check if Number is Even or Odd

C/C++ Program to Count Number of Uppercase and Lowercase Letters in a File

Write a program to count the number of uppercase and lowercase letters ( characters ) in a file in C/C++. For example, Text File Content Hello, My name is John Smith Nice to Meet You Output Uppercase: 7 Lowercase: 28 The logic to count the number of uppercase and lowercase from a file is very … Read more C/C++ Program to Count Number of Uppercase and Lowercase Letters in a File