# Category Archives: Program

## Write a Program to convert a lowercase alphabet to uppercase or vice-versa using ASCII code

ASCII stands for American Standard Code, and it represents a unique numeric value for every character. Every programing language provides some inbuilt functions to convert a lowercase character to uppercase and vice versa, but we can convert the case of a character without using those inbuilt functions or methods. In this article, we will write a program to… Read More »

## Most Asked Pattern Programs in C

Pattern programs are most commonly asked during interviews, so here in this article, we will be covering the top pattern programs in C.  Moreover, the logic is universal and can be applied to different programming languages, such as C++, Java, and Python. Pattern Programs in C The patterns that we will be discussing are: Solid Rectangular Star Pattern… Read More »

## Programming in C and Java to convert from octal to decimal

Here in this article, we have provided Java and C source codes, that ask the user to enter a number in decimal and convert it to the Decimal number system. Example: Input: Octal: 011 Output: Decimal: 9 Input: Octal: 20 Output: Decimal: 16 Input : Octal: 40 Output: Decimal: 32 Octal Number System: Octal number system has a… Read More »

## Python Program to Make a Simple Calculator

Here in this article, we have provided a python source code for a simple calculator that can perform basic arithmetic operations such as Addition, Multiplication, Division, subtraction, and modules. Prerequisite topics to create this program. Python Input, Output Python Data types Python User-defined Functions Python Arithmetic Operators Python If…..elif statements. Steps Create 4 different functions add(), sub(), mul(),… Read More »

## Python Program to Find the Factors of Number

Python Program to Find the Factors of a Number: Here in this article, we have written a python code that asks the user to enter a number and print all the factors of that number as an output. Prerequisite topics to create this program. Python Input, Output Python Data types Python User-defined Functions Python Loop Steps Create a… Read More »

## Python Program to Find LCM

Here we have provided a python source code that asks the user to enter 2 numbers and in Output, it prints the LCM. Prerequisite topics to create this Program Python Input, Output Python Data types Python User-defined Functions Python Loop LCM: LCM stands for Least Common Multiple, and the LCM of two numbers represents the least positive number… Read More »

## Python Program to Find ASCII Value of Character

Here we have provided a python source code that can find the ASCII value of the user entered character. ASCII Code or value: ASCII stands for  American Standard Code or Information Interchange, and it is used to represent 128 characters as numbers, which include special symbols too. Prerequisite topics to create this program Python Input, Output python ord() Steps Ask the… Read More »

## Python Program to Convert Decimal to Binary, Octal and Hexadecimal

Here we have provided a python source code that asks the user to enter a decimal number and in output show its Binary, Octal and Hexadecimal values. Prerequisite topics to create this program. Python Input, Output Python Operators Python int() In python, we already have inbuilt functions which can be used to change the base of value, and… Read More »

## Python Program to Find Numbers Divisible by Another Number

In this article, we will provide Python source code that can find the numbers divisible by another number, specifically, from a list of numbers. Prerequisite Topics to Create the Program Python Input/Output. Python Lambda functions. Filter function in Python. Python operators. Python split operator. Steps to Create the Program First, we ask the user to enter the values… Read More »

## Python Program To Display Powers of 2 Using Anonymous Function (lambda Function)

Here in this article, we have provided a python program that can print the powers of 2 using the python lambda or Anonymous function. Prerequisite topics to create this Program Python Input, Output Python Lambda function. Python map function Python Operators Python Loop Steps First, we ask the user to enter a number n, which represents up to… Read More »