MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / main

Function main

Spoj_problems/ADDREV/solution.cpp:19–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 return res; //Return the obtained reversed number.
18}
19int main()
20{
21 jaadu;
22 int t;
23 cin>>t;
24 while(t--){
25 int a,b;
26 cin>>a>>b;
27 a = reverse(a); //Reverse of number a
28 b = reverse(b); //Reverse of number b
29 cout<<reverse(a+b)<<endl; //Print sum of both reversed numbers.
30 }
31 return 0;
32}

Callers

nothing calls this directly

Calls 1

reverseFunction · 0.70

Tested by

no test coverage detected