Trending Now
Programming News
What is c language
C is a structured programming language developed by Dennis M. Richie, at BEL laboratories in 1972. It is a middle level language and more...
Guides
Tech One
Program to check given number is odd or even
#include<stdio.h>
#include<conio.h>
void main()
{
int a; /* for any integer */
clrscr();
printf("Enter a number n");
...
Tech Two
Python program to read a string and display it in reverse...
str=input("Please Enter a string: ")
print("The",str, "in reverse order is:")
length=len(str)
for a in range(-1,(-length-1),-1):
print(str)
Output:
...
Most popular
Python program to perform all arithmetic operations on two integers using function
def airthcalc(x,y):
return x+y, x-y, x*y, x/y, x%y
#_____main_____
num1=int(input("Please enter the first number: "))
num2=int(input("Please enter the second number: "))
add,sub,mult,div,mod=airthcalc(num1,num2)
print("Sum of given numbers:...
Python program to find the factorial of a number using recursive
def recur_factorial(num):
if(num <= 1):
return 1
else:
...
Program for updating the date by one day
#include<stdio.h>
#include<conio.h>
void main()
{
in d,m,y;
clrscr();
printf("Enter date d, m, yn");
scanf("%d%d%d",&d, &m, &y);
/* Increase the day...
Program to find the reverse of the given number
#include<stdio.h>
#include<conio.h>
void main()
{
long n;
long s=0;
clrscr();
printf("n Enter a number n");
scanf("%ld", &n);
while(n!=0)
{
s=s*10+n%10; /* n%10 gives last...