C # Program to find the sum of two integers of different bases .
using System . Collections . Generic ; using System ; using System . Linq ; using System . Text ; class GFG { static int val ( char c ) { if ( c >= '0' && c <= '9' ) return ( int ) c - '0' ; else return ( int ) c - ' A ' + 10 ; } static int convert ( string num , int bases ) { int len = ( num . Length ) ;