#include<iostream>
using namespace std;
int main()
{
char a[10];
cout << "Enter A Numeric String :: ";
cin >> a;
int b = atoi(a);
cout <<"Integer is :: " << b << endl;
return 0;
}
using namespace std;
int main()
{
char a[10];
cout << "Enter A Numeric String :: ";
cin >> a;
int b = atoi(a);
cout <<"Integer is :: " << b << endl;
return 0;
}
Comments
Post a Comment