Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  ghkhg
Language: C/C++
Code:
#include <stdio.h>
int main(int argc, char *argv[])
{
int n, a, pow;
pow=1;
a=0;
     printf("entern", a);
scanf("%d", &a);
while(n!=0){
a+=(n%10)*pow;
pow=pow*2
n=n/10;
}
printf("answert", a);
     getchar();
     return 0;
}
          
          
Comments: