This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<stdio.h> | |
| int main(int argc, char const *argv[]) | |
| { | |
| /* c program to implement calculater fetures*/ | |
| int a,b,add,sub,mul,div; | |
| a=2,b=2; | |
| printf("calculater fetures:\n"); | |
| add=a+b; | |
| sub=a-b; | |
| mul=a*b; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tkinter as tk | |
| class Calculator: | |
| def __init__(self, root): | |
| self.root = root | |
| self.root.title("Calculator By IH Efty") | |
| self.root.geometry("390x600") | |
| self.root.resizable(0, 0) | |
| self.expression = "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="calculator"> | |
| <div class="row"> | |
| <div class="button clear-button">C</div> | |
| <div class="output"></div> | |
| </div> | |
| <div class="row"> | |
| <div class="button number">7</div> | |
| <div class="button number">8</div> | |
| <div class="button number">9</div> | |
| <div class="button operator">+</div> |