MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/questions/reverse.cpp:9–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#define endl '\n'
8
9int main(){
10 cin.tie(0)->sync_with_stdio(0);
11 int n;
12 cin>>n;
13 int ans=0;
14 while(n!=0){
15 ans=ans*10+(n%10);
16 n/=10;
17 }
18 cout<<ans<<endl;
19 return 0;
20}
21
22

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected