Give me a Problem

Reply

Join Date: Jan 2009
Posts: 28
Reputation: moonw3ll is an unknown quantity at this point 
Solved Threads: 1
moonw3ll's Avatar
moonw3ll moonw3ll is offline Offline
Light Poster

Give me a Problem

 
0
  #1
Jan 31st, 2009
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 ^_^
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 476
Reputation: csurfer is just really nice csurfer is just really nice csurfer is just really nice csurfer is just really nice csurfer is just really nice 
Solved Threads: 76
csurfer's Avatar
csurfer csurfer is offline Offline
Posting Pro in Training

Re: Give me a Problem

 
0
  #2
Jan 31st, 2009
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.
I Surf in "C"....
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 953
Reputation: MosaicFuneral is just really nice MosaicFuneral is just really nice MosaicFuneral is just really nice MosaicFuneral is just really nice MosaicFuneral is just really nice 
Solved Threads: 92
MosaicFuneral's Avatar
MosaicFuneral MosaicFuneral is offline Offline
Posting Shark

Re: Give me a Problem

 
0
  #3
Feb 1st, 2009
In the C++ form, there is a sticky on project ideals.
"Jedenfalls bin ich überzeugt, daß der Alte nicht würfelt."
"I became very sensitive to what will happen to all this and all of us." -Two geniuses named Albert
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 28
Reputation: moonw3ll is an unknown quantity at this point 
Solved Threads: 1
moonw3ll's Avatar
moonw3ll moonw3ll is offline Offline
Light Poster

Re: Give me a Problem

 
0
  #4
Feb 1st, 2009
@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...
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: Give me a Problem

 
0
  #5
Feb 1st, 2009
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).
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 25
Reputation: nitu_thakkar has a little shameless behaviour in the past 
Solved Threads: 1
nitu_thakkar's Avatar
nitu_thakkar nitu_thakkar is offline Offline
Light Poster

Re: Give me a Problem

 
0
  #6
Feb 2nd, 2009
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...
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 28
Reputation: moonw3ll is an unknown quantity at this point 
Solved Threads: 1
moonw3ll's Avatar
moonw3ll moonw3ll is offline Offline
Light Poster

Re: Give me a Problem

 
0
  #7
Feb 2nd, 2009
@surfer: I haven't learned array but i'm studying..

meanwhile,

@ nitu: i already answered question #1.. #2-#4 remaining.. ty for posting
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Give me a Problem

 
0
  #8
Feb 2nd, 2009
> 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.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 476
Reputation: csurfer is just really nice csurfer is just really nice csurfer is just really nice csurfer is just really nice csurfer is just really nice 
Solved Threads: 76
csurfer's Avatar
csurfer csurfer is offline Offline
Posting Pro in Training

Re: Give me a Problem

 
0
  #9
Feb 2nd, 2009
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.
I Surf in "C"....
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 90
Reputation: ajay.krish123 is an unknown quantity at this point 
Solved Threads: 8
ajay.krish123 ajay.krish123 is offline Offline
Junior Poster in Training

Re: Give me a Problem

 
0
  #10
Feb 3rd, 2009
It will good that i yourself generate the problem and try to solve it instead of searching it.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC