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

Function main

Spoj_problems/TEST/solution.cpp:7–18  ·  view source on GitHub ↗

It's a simple problem focusing on I/O. Continuously take input from user until it reads the number 42 and print the numbers. Problem Tag: #basic #tutorial #ad-hoc-1 */

Source from the content-addressed store, hash-verified

5Problem Tag: #basic #tutorial #ad-hoc-1
6*/
7int main()
8{
9 int s;
10 cin>>s;
11 while(s!=42)
12 {
13 cout<<s<<endl;
14 cin>>s;
15 }
16
17 return 0;
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected