Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

atol - Converts the string into long int value in C++

//ATOL() FUNCTION

#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
char n1[30],n2[30];
clrscr();
cout<<"Enter first:";
cin>>n1;
cout<<"Enter second:";
cin>>n2;
cout<<"The sum is:"<< atol(n1)+atol(n2);
getch();
}