# URI Online Judge Solution 1026 To Carry or not to Carry – Solution in C, C++, Java, Python and C#

### URI Online Judge Solution 1026 To Carry or not to Carry – Solution in C, C++, Java, Python and C#

URI Online Judge Solution 1026 To Carry or not to Carry  | Ad Hoc

Problem Name: 1026 To Carry or not to Carry
Problem Number : URI – 1026 To Carry or not to Carry
Online Judge : URI Online Judge Solution
Solution Language : C,C plus plus, java, python, c#(c sharp)

### URI Solution 1026 To Carry or not to Carry  Code in C:

``#include<stdio.h>int main(){   int unsigned long  a,b,c;   while(scanf("%lu %lu",&a,&b)==2){     c = (a^b);   printf("%lun",c); }    return 0;}``

### URI Solution 1026 To Carry or not to Carry  Code / URI 1026 solution in CPP:

``#include <iostream>using namespace std;int main(){ unsigned long int x, y, r; while(cin >> x >> y) {  r = x ^ y;  cout << r << endl; } return 0;}``

### URI Solution 1026 To Carry or not to Carry  Code / URI 1026 solution in Java:

``import java.io.IOException;import java.util.Scanner;public class Main {     public static void main(String[] args) throws IOException {         Scanner sc = new Scanner(System.in);    long x, y, soma;    while (sc.hasNext()) {        x = sc.nextLong();        y = sc.nextLong();        soma = x^y;        System.out.println(soma);        }     } }``

### URI Solution Code / URI  solution in  C# (C Sharp):

Demonstration:

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 1026 To Carry or not to Carry   code in C, URI 1026 To Carry or not to Carry  code in C++, URI 1026 To Carry or not to Carry  solution in C, URI solution, URI 1026 To Carry or not to Carry solution in C,URI 1079 Weighted Averages solution in C++-CPP,URI 1026 1026 To Carry or not to Carry  solution in C# (C sharp),URI 1026 To Carry or not to Carry  solution in Java,URI 1026 To Carry or not to Carry  solution in Python,URI Online Judge Solution, URI Solution – Ad Hoc

#### By Maniruzzaman Akash

Maniruzzaman Akash is a freelance web developer with most popular Laravel PHP frameork and Vue JS