Public submissions
Source code of every submission to this problem in this contest will be visible for everyone since 2013-08-24 14:35:21.

TESTINT - Test 1

Given two natural numbers (both not greater than 200), each number in the separate line, please print the sum of them.

Example

Input:
2
3

Output:
5

Added by:kuszi
Date:2012-08-22
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64
Public source code since: 2013-08-24 14:35:21

hide comments
2014-04-09 17:39:04 Mano
add the return statement like this

return 0;
2014-02-11 22:37:15 kuszi
@madman12345: please add "return 0;" statement at the end of your program.
2014-02-11 15:52:38 madman12345
I am new to spoj system and even though I am an average programmer, I seem to have problem understanding the program running in spoj. It would be great if someone can help me with the following code:
#include <stdio.h>

int main()
{
int a,b;
scanf("%d",&a);
scanf("%d",&b);
printf("%d",a+b);
}
2014-01-24 08:03:26 Nick
Btw, thanks for giving this learning section. Happy to learn the fundamental of programming :)
2014-01-16 19:48:09 Dennis Lee
typo: grater->greater

[kuszi: thank you]

Last edit: 2014-01-16 22:58:31
2013-12-19 02:48:25 Mitch Schwartz
In the problem description we are guaranteed that the input does not contain numbers greater than 200, so you do not need to check that unless you suspect Ɓukasz Kuszner of lying or carelessness. :p
2013-12-16 17:16:59 Geo Miller
Checking the if condition does not seem to be necessary to pass.
2013-11-29 00:11:53 Nikhilesh
//declare two variables and read the input from user.
write a condition(if) for numbers are not greater than 200.
Sum the given two numbers and print them

Last edit: 2013-11-29 00:12:25
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.