Trending Now
Programming News
Python program to perform all arithmetic operations on two integers using...
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:...
Tech One
Python Identifiers
Identifier क्या है?
Identifier एक नाम होता है जिसमें कुछ Name, letters, special character (केवल _ underscore) का use होता है Identifier का use...
Tech Two
Python Identifiers
Identifier क्या है?
Identifier एक नाम होता है जिसमें कुछ Name, letters, special character (केवल _ underscore) का use होता है Identifier का use...
Most popular
Python program to find the factorial of a number using recursive
def recur_factorial(num):
if(num <= 1):
return 1
else:
...
Program to largest and equal of two numbers
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b; /* for two numbers a & b */
clrscr();
...
Program to find simple interest
#include<stdio.h>
#include<conio.h>
void main()
{
float p,t,r,si; /* p-> principle amont, t-> time in years,
...
Program for largest and second largest of three numbers
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter three numbersn);
scanf("%d%d%d",&a,&b,&c);
if((a<b)&&(a>c)) /* checking for a is largest */
...