Skip to content
About Me
Accounting
Adv JavaScript
Adv Python
Adv. Excel
AI
C
C Case Study
C Practice Programs
C#
Conditional Programming
Core Python
CPP
CSS 3
CSS Grid Layout
CSS Media Queries
Databases
DSA
Excel Notes
Fundamentals
Graphics
GUI
Home
HTML5
Iterative Programming
Java
Java DSA
Java Fundamentals
JavaScript
JSP
Languages
Leatcode Java
Leetcode
MS Excel
MS Office
MS Power Point
MS SQL Server
MS Word
MySql
OOPs
Oracle
PL-SQL
Prompt Engineering
Python
React JS
React JS Notes
Servlets
SQL
Through C
Through C++
Through Java
Through Python
Web Design
Web Development
Home
About Me
Fundamentals
MS Office
MS Word
MS Excel
Adv. Excel
MS Power Point
Languages
C
C Practice Programs
Graphics
C Case Study
CPP
Java
Java Fundamentals
Conditional Programming
Iterative Programming
OOPs
Servlets
JSP
Java DSA
C#
Python
Core Python
Adv Python
GUI
DSA
Through C
Through C++
Through Java
Through Python
Databases
MySql
Oracle
SQL
PL-SQL
MS SQL Server
Web Design
HTML5
CSS 3
CSS Grid Layout
CSS Media Queries
JavaScript
Web Development
Adv JavaScript
React JS
Accounting
AI
Prompt Engineering
Leetcode
Menu
Basic Programs for Practice
Write a program to perform addition of two numbers.
Write a program to perform subtraction of two numbers.
Write a program to perform multiplication of two numbers.
Write a program to perform division of two numbers.
Write a program to find the remainder using modulus operator.
Write a program to calculate the average of three numbers.
Write a program to convert temperature from Celsius to Fahrenheit.
Write a program to calculate the area of a rectangle.
Write a program to calculate the area of a circle.
Write a program to swap two numbers using arithmetic operators (without third variable).
Write a program to demonstrate the use of += operator.
Write a program to demonstrate the use of -= operator.
Write a program to demonstrate the use of *= operator.
Write a program to demonstrate the use of /= operator.
Write a program to demonstrate the use of %= operator.
Write a program to compare two numbers using ==.
Write a program to check whether two numbers are equal or not.
Write a program to find the greater of two numbers using relational operators.
Write a program to check whether a number is positive or negative.
Write a program to check whether a number is greater than 100.
Write a program to check whether a number lies between 1 and 100.
Write a program to check whether a student has passed (marks ≥ 35 and attendance ≥ 75%).
Write a program to check whether a character is a vowel using logical OR operator.
Write a program to determine eligibility for voting.
Write a program to check whether a year is a leap year.
Write a program to demonstrate pre-increment operator.
Write a program to demonstrate post-increment operator.
Write a program to demonstrate pre-decrement operator.
Write a program to demonstrate post-decrement operator.
Write a program to show the difference between pre and post increment.
Write a program to find the larger of two numbers using the conditional operator.
Write a program to find the smaller of two numbers using the conditional operator.
Write a program to determine whether a number is even or odd using the conditional operator.
Write a program to find the maximum of three numbers using nested conditional operators.
Write a program to check whether a student has passed or failed using the conditional operator.
Write a program to demonstrate bitwise AND (&) operator.
Write a program to demonstrate bitwise OR (|) operator.
Write a program to demonstrate bitwise XOR (^) operator.
Write a program to demonstrate bitwise NOT (~) operator.
Write a program to demonstrate left shift (<<) operator.
Write a program to demonstrate right shift (>>) operator.
Write a program to check whether a number is even or odd using bitwise operator.
Write a program to multiply a number by 2 using left shift.
Write a program to divide a number by 2 using right shift.
Write a program to swap two numbers using XOR operator.
Write a program to calculate simple interest.
Write a program to calculate compound interest.
Write a program to calculate gross salary.
Write a program to calculate net salary after deductions.
Write a program to calculate percentage and grade of a student.
Write a program to find the largest among three numbers.
Write a program to find the smallest among three numbers.
Write a program to calculate electricity bill.
Write a program to calculate profit or loss.
Write a program to calculate discount amount and final bill.
Write a program to swap two numbers using bitwise operators.
Write a program to find the maximum of five numbers using conditional operators only.
Write a program to check whether a number is within a specified range using logical operators.
Write a program to perform all arithmetic operations using a menu-driven approach.
Write a program that demonstrates all operators in a single program.