Bhuwan Sharmabhuwan.hashnode.devยทMay 22, 2024#2 Binary to decimal#include <iostream> #include <math.h> using namespace std; int main(){ //Binary to decimal: int n; cout<<"enter: "; cin>>n; int r, i=0, ans = 0; while(n!=0){ r = n/10; if((n%10)==1){ ans += pow(2, ...DSAAdd a thoughtful commentNo comments yetBe the first to start the conversation.