C Program – Sum of digits of given number till single digit
C Program to print the sum of digits till single digit. Sum of Digits Till Single Digit : SumOfDigits.c #include<stdio.h> int main(void) { long num; int dig,sum; printf("Enter…
Press Esc to close
C Program to print the sum of digits till single digit. Sum of Digits Till Single Digit : SumOfDigits.c #include<stdio.h> int main(void) { long num; int dig,sum; printf("Enter…
C Program to find the GCD of two numbers. GCD of two numbers : GCD.c #include<stdio.h> int gcdCalc(int a,int b); int main(void) { int x, y; printf("Enter x…
C Program to print the prime numbers between two numbers. Prime numbers between two numbers : PrimeNumbers.c #include<stdio.h> #include<math.h> void printPrimes(int num1,int num2); int isPrimeNumber(int n); int main(void)…
C Program to print Armstrong numbers between the given two numbers. Armstrong numbers : ArmstrongNumbers.c #include<stdio.h> int main(void) { int x,y,n,num,cube,d,sum; printf("Enter x and y values to print…
C program to reverse of a number. Reverse of a number : Reverse.c #include<stdio.h> int reverse(int n); int main(void) { int num; printf("Enter any number to reverse :…
C Program to print the sum of digits of a given number. Sum of Digits : SumOfDigits.c #include<stdio.h> int main(void) { int n,sum=0,rem; printf("Enter a number to Calculate…
C Program to check a given number is palindrome or not. Number is Palindrome or not ? Palindrome.c #include<stdio.h> long int reverse(long int n); int isPalindrome(long int num);…
C Program to find given number is Even or Odd. Even or Odd : EvenOrOdd.c #include<stdio.h> int main(void) { int n; printf("Enter any number : "); scanf("%d",&n); if(n%2==0)…
C Program to find the factorial of given number. Factorial Of Given Number : Factorial.c #include<stdio.h> int main(void) { int n,num; long fact=1; printf("Enter any number : ");…
C Program to find a given number is prime or not. is Prime or not ? PrimeOtNot.c #include<stdio.h> #include<math.h> int main(void) { int i,n; printf("Enter any number :…
C- Program to generate Fibonacci Series. Fibonacci Series : Fibonacci.c #include<stdio.h> int main(void) { long a,b,c; int i,n; a=0; b=1; printf("Enter the number of terms : "); scanf("%d",&n);…
Any expression which returns either true or false that expression is known as condition. Python Conditional Statements : The Python Conditional statements are used to decide whether the…
The Python if statement is also similar to other languages like java, php simple if statements and etc., Python if statement : Python if is a simple conditional…
Operators are used to manipulate the values of operands. This tutorial lets you understand the python operators. Python Operators : Python provideing following set of operators. Arithmetic Operators…
In this tutorials, I am going to show you how to read input from the keyboard in python. Python raw_input : Python raw_input is a python function used…
We have discussed in the previous tutorials, how to handle different types of number systems in python language. In this tutorials we are going to see how to…
According to the mathematics we have four types of number systems which are representing the numbers in computer architecture. In this tutorial, we are going to learn how…
In this tutorial, we will see the different ways to develop a python program/application are Modes of Python Program : We can develop a python program in 2…
In this tutorial, we are going to learn about the features of Python Language. Features of Python Language : Python supports the following features. 1. Simple and easy…
Python is a powerful and general purpose programming language developed by the Guido van Rossum, and its implementation began in December 1989. Python Language : Guido van Rossum…