Skip to content

Instantly share code, notes, and snippets.

View shivam-gupta007's full-sized avatar
🎯
Focusing

Shivam Gupta shivam-gupta007

🎯
Focusing
View GitHub Profile
@shivam-gupta007
shivam-gupta007 / Program-No:1-4.py
Created February 25, 2022 09:46
Python-assignment
b = float(input("Enter the base of Triangle: "))
h = float(input("Enter the height of Triangle: "))
area = (b*h)/2
print("Area of Triangle: ",(area))
# Output -
# Enter the base of Triangle: 11.5
# Enter the height of Triangle: 5
# Area of Triangle: 28.75
@shivam-gupta007
shivam-gupta007 / activity_main.xml
Created March 6, 2022 18:26
Simple Calculator
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="8dp"
tools:context=".MainActivity">
<EditText