1.if a five digit number is input through the keyboard, write a program to
calculate the sum of its digits.(use the modulus operator %)
2.if a five digit number is input through the keyboard,write a program to
reverse the number.
3.if a five digit number is input through the keyboard,write a program to obtain
the sum of this number.

I need coding of these programs. Is there any1 who cud help

Recommended Answers

All 2 Replies

1. You separate the digits and add them together! Works like a charm.

2. You flip it around. EZ!

3. Sum of itself?

and lastly, you could always help yourself. *shrug*

Read this. Then we'll be more than happy to help you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.