Infolinks - Earn Easy Money

Friday, April 3, 2015

C++ program to add 1 in every digit of a number

#include <conio.h>
#include <iostream>
using namespace std;

int main (   )
{
int number, result;
cout<<" Program to +1 in every digit of a five digits number \n\n";
cout<<" Enter a five digits number \n";
cin>> number;
result = number + 11111;
cout<<" Number after addition will be \n";
cout<< result;
return 0;
}

No comments:

Post a Comment

Must drop your comments about post.