URI Online Judge | 1003 Simple Sum (Solution)
Problem link:
https://www.urionlinejudge.com.br/judge/en/problems/view/1003
Solution:
https://www.urionlinejudge.com.br/judge/en/problems/view/1003
URI Online Judge | 1003
Simple Sum
Adapted by Neilor Tonin, URI Brazil
Timelimit: 1
Read two variables A and B. Next, calculate the sum between them and assign it to the variableSOMA. Write the value of this variable.
Input
The input file will contain 2 integer numbers.
Output
Print SOMA according to the following example, with a blank space before and after the equal signal.
Samples Input | Samples Output |
30 10 | SOMA = 40 |
-30 10 | SOMA = -20 |
0 0 | SOMA = 0 |
#include<stdio.h>
int
main(){
int
a,b;
scanf
(
"%d %d"
,&a,&b);
printf
(
"SOMA = %d\n"
,a+b);
return
0;
}
good
ReplyDeletethnx :)
ReplyDelete