Posts

555 Timer as Monostable Multivibrator

Here, I have simulated a Monostable Multivibrator in Proteus design suite.

Python: Addition, Subtraction, Multiplication and Division using function

Program:   #Addition function def addition(a,b):     c=a+b     print("Addition= ",c) print("Enter two numbers") #Subtraction function def subtraction(a,b):     c=a-b     print("Subtraction= ",c) #Multiplication function def multiplication(a,b):     c=a*b     print("Multiplication= ",c) #Division function def division(a,b):     c=a/b     print("Division= ",c) a=float(input()) b=float(input()) addition(a,b) subtraction(a,b) multiplication(a,b) division(a,b) Output: Enter two numbers 8 4 Addition=  12.0 Subtraction=  4.0 Multiplication=  32.0 Division=  2.0

Python: Addition of two numbers using function

Below is a simple addition program demonstrated using function addition. This program shows you how to use function in Python  def addition(a,b): #This is funtion definitation     c=a+b     print("Addition = {}".format(c)) print("Enter two numbers to be added") a=int(input()) b=int(input()) addition(a,b) #call the function addition() by passing two numbers a & b Text in green are comments Output: Enter two numbers to be added 341 12 Addition = 353

Program for addition of two number using Python

 This is a simple program for addition of two numbers using Python. Program takes two numbers as input from the user and prints the sum as output. #Simple Program for addition of two number without using function print("Enter two numbers to be added") #int can have numbers in the range -2147483648 through 2147483647 a=int(input()) #takes first number as input from user b=int(input()) #takes second number as input from user c=a+b           #adds two numbers a & b and saves to c print("Addition of numbers {} and {} is {}".format(a,b,c)) Text in green color shows the comments Output: Enter two numbers to be added 123 123 Addition of numbers 123 and 123 is 246

Upstox Free Demat and Trading account opening

Image
Hi All, Upstox is providing free Demat and Trading account for today. Please do get this benefit as early as possible. Link for Free account opening For Desktop/Laptop users: Click here For Mobile phone users: Click here Upstox benefits: 1. Zero brokerage for first month on all trades. 2. Zero Delivery brokerage for lifetime. Thank you

Voltage Divider Circuit Simulation using Proteus Circuit design software

Below video describes how to use Proteus electronics circuit simulation tool to design and simulate circuits. Please watch below video which describes how to simulate a simple voltage divider circuit using Proteus 8. You can watch the same on YouTube also  https://www.youtube.com/watch?v=WlfEdPcbn8I

Cookie used by Blog

"This site uses cookies from Google to deliver its services and analyze traffic. Your IP address and user-agent are shared with Google along with performance and security metrics to ensure quality of service, generate usage statistics, and to detect and address abuse."