MCPcopy Create free account
hub / github.com/chaharnishant11/CodeIn10DSA / main

Function main

C++/Code/binaryArithmeticOperators.cpp:5–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3using namespace std;
4
5int main(){
6 int a = 20;
7 int b = 10;
8
9 cout<<"a+b "<<a+b<<endl; //adding a and b
10 cout<<"a-b "<<a-b<<endl; //subtracting b from a
11 cout<<"a*b "<<a*b<<endl; //multiplying a and b
12 cout<<"a/b "<<a/b<<endl; //dividing b by a
13 cout<<"a%b "<<a%b<<endl; //remainder on dividing b by a
14}
15
16/*
17OUTPUT

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected