URI Online Judge Solution 1003 Simple Sum | Solution in C, C++, Java, Python and C#
URI Online Judge Solution 1003 Simple Sum | Beginner
URI Problem Link - 1003 Simple Sum - https://www.urionlinejudge.com.br/judge/en/problems/view/1003
Problem Name: 1003 Simple Sum code
Problem Number : URI - 1003 Simple Sum solution
Online Judge : URI Online Judge Solution
Category: Beginner
Solution Language : C,C plus plus, java, python, c#(c sharp)
If you want you can see an YouTube video on URI online judge solution 1003 in C language -
URI Solution 1003 Code in C/ URI Simple sum solution in C:
#include <stdio.h> int main() { int x; int y; scanf("%d", &x); scanf("%d", &y); printf("SOMA = %d\n", x + y); return 0; }
URI Solution 1003 Code / URI 1002 solution in C++(CPP):
#include <cstdio> int main() { int x; int y; scanf("%d", &x); scanf("%d", &y); printf("SOMA = %d\n", x + y); return 0; }
URI Solution 1003 Code / URI 1003 solution in Java:
import java.util.Scanner; public class Main { public static void main(String[] args){ int A, B; Scanner sc = new Scanner(System.in); A = sc.nextInt(); B = sc.nextInt(); System.out.print("SOMA = "+(A+B)+"\n"); } }
URI Solution 1003 Code / URI 1003 solution in Python:
A = int(input()) B = int(input()) soma = A + B print("SOMA = %d" %soma)
URI Solution 1003 Code / URI 1003 solution in C# (C Sharp):
using System; class URI { static void Main(string[] args) { int a, b; a = Convert.ToInt32(Console.ReadLine()); b=Convert.ToInt32(Console.ReadLine()); Console.WriteLine("SOMA = " + (a + b)); Console.ReadKey(); } }
Or in C#
using System;class URI {static void Main(string[] args) {int A = int.Parse(Console.ReadLine());int B = int.Parse(Console.ReadLine());int sum = A+B;Console.WriteLine("SOMA = {0}", sum);}}
Demonstration:
It is a simple summation problem. Just take the summation into a variable and print it or just print a+b.
Remember, as a beginner of URI online judge, put a new line after the solution, otherwise, you'll get a presentation error.
Just implement this in coding. Since having any problem just put a comment below. Thanks
Tags: URI Online Judge Solution, URI OJ Solution list, URI Problems Solution, URI solver, URI all problem solution list, URI Simple Sum code in C, URI 1003 code in C++, URI Simple Sum solution in C, URI solution, URI 1003 solution in C,URI 1003 solution in C++-CPP,URI 1003 solution in C# (C sharp),URI 1003 solution in Java,URI 1003 solution in Python,
army
ReplyDelete