Advertisement

21 How to find decimal equivalent of given String of any base || Beauty with Codes

21 How to find decimal equivalent of given String of any base || Beauty with Codes Asked by: #Amazon #Adobe #TCS #Samsung

Description

Problem Statement:
Convert the given String into it's decimal equivalent. In first line you will have one integer T representing number of testcases. For each of the T cases in first line one string and in next line an integer representing it's base will be there.

INPUT
2
101
2
A
16

OUTPUT
5
10


CS and IT students preparing for placements.
GATE exam
College exam
Interview
More videos coming soon...
#TCSnqt
#stayathome
#BeautyWithCodes

ig:

for #giveaway :
step 1 : Subscribe to my channel
step 2 : go to web:
step 3 : fill your email and tap on " GET "
step 4 : you will get a mail from Beauty with Codes
step 5 : check your mail and click on " CLICK HERE "

TCS National Qualifier Test,Internship,College,University,Student,gate,#BeautyWithCodes,Amazon,Adobe,TCS,Samsung,MAQ Software,placement,how to,How to find first,placement question,HOT,HOTs,important,decimal equivalent,decimal equivalent of given String of any base,change from one base to another,String,stayathome,Python For Beginners,python,

Post a Comment

0 Comments