# Category Archives: Program

## C++ & Python program to print the ASCII value of a character

ASCII stands for American Standard Code for Information Interchange and it defines that each character in a programming language has a fixed ASCII value and it always a positive integer. The character includes every single element and it could be symbols too

## Write a Program in C++ & Python to convert a given number of days into years, weeks and days

Here in this program, the user will enter a number and our program will filter that number into years, weeks and days. For example, if the user enters 365 days the output should be 1 year 0 weeks 0 days Here we are not considering leap years.

## Write a program in C++ & Python to raise any number x to a Positive Power n

Here we have provided two programs to raise any number x to a power n; in C++ and python. Here x would be the number whose power to be raised, n will be the number which represents the value of power. For example, if x is 2 and n is 4 the output should be… Read More »

## Write a Program in C++ & Python to find whether a number is a palindrome or not

This code checks whether the entered number is a palindrome or not. A palindrome number is a unique number which reverse is equal to it. For example, 11, 111, 121, 131… are palindrome numbers.

## Write a program in C++ & python to check whether the entered number is prime or not

In this program, we will code to find the number is prime or not. A number is said to be a prime number if it has only 2 divisors 1 and the number itself.

## Write a Program to Calculate Simple Interest

Here we have provided two programs which calculate the simple interest when the user provides the principal, rate and time. To calculate the simple interest, we have used this formula:

## Write A Program in C++ & Python to Display Fibonacci Series

In this program, we will code to display the Fibonacci series up to number n. A Fibonacci series is a sequence starts from 0 and the next number is the sum of the previous number and the current one. For example, 0,1, 1, 2, 3, 5, 8……. Is a Fibonacci series.

## Write a program in C++ & Python to display a message on screen

In this program, we will only display a message i.e. HELLO WORLD!   C++: #include<iostream.h> #include< conio.h> void main() { clrscr(); cout<<“\n\n\n\n\n\n\n\n\t\t\ ******************  HELLO WORLD! ********************”; getch(); }   Output ******************  HELLO WORLD! ********************   Python; print(“‘\n\n\n\n\t\t\t**********************   HELLO WORLD!   ***********************”)   Output **********************   HELLO WORLD!   ***********************