943,866 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 1396
  • C RSS
You are currently viewing page 1 of this multi-page discussion thread
Jan 31st, 2009
0

Give me a Problem

Expand Post »
I'm new in programming, i really really want to learn and i think i can learn faster if someone will give me problems so that i can answer them without asking for help from others. Now, i learned loop last week so i think i'm on for making programs. I still don't know conio.h yet.. My instructor let us use only the stdio.h library first..

So, can someone post some problems here? just up to loops only.. I hope someone would take this seriously and can help me.

I will be waiting ^_^
Similar Threads
Reputation Points: 10
Solved Threads: 1
Light Poster
moonw3ll is offline Offline
37 posts
since Jan 2009
Jan 31st, 2009
0

Re: Give me a Problem

The real essence of C is in the discovery of C by yourself so try to discover more and read books like "ANSI C" by Kernighan and Ritchie.

1.Try to print the Pascal's Triangle (This requires only looping and a bit of array knowledge.)

2.You need to start imagining and create problems of your own from now on.Best of luck.
Reputation Points: 485
Solved Threads: 88
Posting Pro
csurfer is offline Offline
564 posts
since Jan 2009
Feb 1st, 2009
0

Re: Give me a Problem

In the C++ form, there is a sticky on project ideals.
Reputation Points: 888
Solved Threads: 114
Nearly a Posting Virtuoso
MosaicFuneral is offline Offline
1,270 posts
since Nov 2008
Feb 1st, 2009
0

Re: Give me a Problem

@csurfer: Ty.. I will do what you said.. But in the meantime, i want someone to give me exercises. I'm studying almost everyday but i want someone to give me exercises so that i can test if my knowledge is enough about loops.

Thank you...
Reputation Points: 10
Solved Threads: 1
Light Poster
moonw3ll is offline Offline
37 posts
since Jan 2009
Feb 1st, 2009
0

Re: Give me a Problem

There's plenty of easy (and not so easy) homework posted on the board. Any of those would make excellent exercises (it's what they're designed for).
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Feb 2nd, 2009
0

Re: Give me a Problem

you can make the prgs like

1) find factorial of given no.

2) find that given no. is prime or not

3) find given no. is pelindrome or not

or you can makes prg like

if user enter : 4 no. then out put must be like

*
**
***
****

u can reverce that one etc...
Reputation Points: 0
Solved Threads: 1
Light Poster
nitu_thakkar is offline Offline
25 posts
since Jan 2009
Feb 2nd, 2009
0

Re: Give me a Problem

@surfer: I haven't learned array but i'm studying..

meanwhile,

@ nitu: i already answered question #1.. #2-#4 remaining.. ty for posting
Reputation Points: 10
Solved Threads: 1
Light Poster
moonw3ll is offline Offline
37 posts
since Jan 2009
Feb 2nd, 2009
0

Re: Give me a Problem

> Give me a Problem

Problem 1
I have just broken your legs with a sledgehammer, how do you get to the hospital?

Problem 2
Try to make a program where you have to enter your name, then the program says, 'Hello <name>!' *


[*] Replace <name> with your actual name. Exclamation mark optional.
Last edited by iamthwee; Feb 2nd, 2009 at 4:51 pm.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Feb 2nd, 2009
0

Re: Give me a Problem

Ok try to print this as it is:

a,b
aa,ab,ba,bb
aaa,aab,aba,abb,baa,bab,bba,bbb
....
..
.

Upto the line user wants.I hope you can see the patter.Its coefficients of the expansion ( a + b ) ^ n.User will give the value of n and you need to print upto that line. Involves only looping.Try this.
Reputation Points: 485
Solved Threads: 88
Posting Pro
csurfer is offline Offline
564 posts
since Jan 2009
Feb 3rd, 2009
0

Re: Give me a Problem

It will good that i yourself generate the problem and try to solve it instead of searching it.
Reputation Points: 6
Solved Threads: 9
Junior Poster in Training
ajay.krish123 is offline Offline
90 posts
since Nov 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: It is possible to copy to a variable the selected index of a string?
Next Thread in C Forum Timeline: PThread liberary





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC