URI Online Judge | 1003 Simple Sum (Solution)

Problem link:
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 InputSamples Output
30
10
SOMA = 40
-30
10
SOMA = -20
0
0
SOMA = 0
Solution:

#include<stdio.h>
int main(){
    int a,b;
    scanf("%d %d",&a,&b);
    printf("SOMA = %d\n",a+b);
    return 0;
}

Comments

Post a Comment

Popular posts from this blog

URI Online Judge | 1036 Bhaskara's Formula (Solution)

URI Online Judge | 1043 Triangle (Solution)

URI Online Judge | 1042 Simple Sort (Solution)