Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# gitworkshop

This repository was created as a sample repository for the 2019 Git Workshop.
19 changes: 19 additions & 0 deletions calculator.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include<iostream>
using namespace std;
void add(int a, int b) // function to add two numbers
{
int c=a+b;
cout<<"Sum of 2 numbers "<<a<<" and "<<b<<" is "<<c;
}

void sub(int a, int b)
{
int c=a-b;
cout<<"Difference of 2 numbers "<<a<<" and "<<b<<" is "<<c;
}

void mul(int a, int b) // function to add two numbers
{
int c=a*b;
cout<<"Product of 2 numbers "<<a<<" and "<<b<<" is "<<c;
}
2 changes: 0 additions & 2 deletions main.c

This file was deleted.