DIGIT-ARC read-only archive · snapshot: July 23, 2026

helping out with sample programs in c++

7 posts · originally from https://geek.digit.in/community/threads/helping-out-with-sample-programs-in-c.48705/

G
gearShifts Original post #1
Feb 6, 2007 at 11:03 PM
Anyone please, help me write these patterns in c++
1.
1
212
32123
4321234
32123
212
1

2.
1
121
12321
1234321

3.
WAP to find sum of digits of an integer and continue summing the digits till the last sum is single digit.

4.
WAP to convert decimal number into binary and vce versa.


5.
WAP to sum sequence of integers. Assume that the 1st integer read specifies the number of values remaining to be entered in, the program should read only one value per input statement.
n2casey
n2casey #2
Feb 6, 2007 at 11:27 PM
Friend, b4 posting take care that
- Ur post shud not b in wrong section
- U have posted only once

Here, u didn't take care for both the things, so I ahve reported the thread.
ahref
ahref #3
Feb 6, 2007 at 11:32 PM
I think this is your homework.
n2casey
n2casey #4
Feb 6, 2007 at 11:33 PM
ahref said:
I think this is your homework.
& he is doing it from his home. :D :D :D :D
ilugd
ilugd #5
Feb 7, 2007 at 12:13 AM
naughty gearshifts, no donut for you.
Pathik
Pathik #6
Feb 7, 2007 at 12:23 AM
lol dude do it urself.. We can explain the logic if u want.. Write the code urself
Ganeshkumar
Feb 7, 2007 at 6:08 PM
Try it da...

If u couls not.. Mail me I can help u.........