In this article, we are going to learn how to make simple Calculator android and ios application using flutter. For this purpose we are using two library which are given below. material.dart math_expressions.dart First library is used in any flutter application for GUI purpose, and second one is used for maths expression solve. In pubspec.yaml file you have to add following library. dependencies: flutter: sdk: flutter # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^0.1.3 math_expressions: ^2.0.0 Now click on pub upgrade on upper side. For…
-
-
Here we are using basic operator and function to implement basic calculator. This program provide basic use of operator and how to work with function. con=1 while con==1: no1=int(input("Enter First Value ")) no2=int(input("Enter Second Value ")) print("Choice") print("1. Add") print("2. Subtract") print("3. Multiplication") print("4. Division") choice=int(input("Enter Choice ")) def Add(): return (no1+no2) def Sub(): return (no1-no2) def Mul(): return (no1*no2) def Div(): return (no1/no2) def perform_op(choice): if choice == 1: print(Add()) elif choice == 2: print(Sub()) elif choice == 3: print(Mul()) elif choice == 4: print(Div()) else: print("*** Invalid Choice ***") perform_op(choice) con=int(input("Do You Want To Continue ")) OutPut…