nahsorhseda
Member
- Messages
- 116
- Reaction score
- 0
- Points
- 16
consider i have a number...
int a=3453;
i want that no. to be reversed ie:3543
i want the digits to be added ie:3+4+5+3=15
and i want to count the no. of digits in th given no. ie .there are 4 digits in this no.
please dont use any inbuilt functions to do this,u may use loops and if statements.....!
any help would be appreciated
int a=3453;
i want that no. to be reversed ie:3543
i want the digits to be added ie:3+4+5+3=15
and i want to count the no. of digits in th given no. ie .there are 4 digits in this no.
please dont use any inbuilt functions to do this,u may use loops and if statements.....!
any help would be appreciated