| | |
Give me a Problem
![]() |
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 ^_^
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 ^_^
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.
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"....
> 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.
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*
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.
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"....
![]() |
Similar Threads
- Pls help me... in array problem.. (C++)
- Page navigation problem:urgent (PHP)
- Windows Visa Home Basic Major Problem (Windows Vista and Windows 7)
- The linked list display problem (C++)
- problem in sizeOf() program (C)
- problem in c++ (C++)
- Problem with video file timing (Windows Software)
- Another hotoffers hijacking problem.. (Viruses, Spyware and other Nasties)
- Windows Xp And Ie Problem (spyware) (Viruses, Spyware and other Nasties)
Other Threads in the C Forum
- Previous Thread: It is possible to copy to a variable the selected index of a string?
- Next Thread: PThread liberary
| Thread Tools | Search this Thread |
adobe api array arrays binarysearch calculate char cm convert copyanyfile copypdffile cprogramme createcopyoffile createprocess() csyntax directory dynamic feet fflush file floatingpointvalidation fork forloop frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hacking hardware highest homework i/o ide inches incrementoperators intmain() iso kernel kilometer km linked linkedlist linux linuxsegmentationfault list locate logical_drives loopinsideloop. match matrix microsoft motherboard mqqueue mysql oddnumber odf open opensource openwebfoundation owf pattern pdf performance pointer posix power probleminc program programming pyramidusingturboccodes read recursion recv recvblocked repetition research scanf scheduling segmentationfault send shape socketprograming socketprogramming stack standard strchr string suggestions systemcall test unix urboc user variable voidmain() wab win32api windows.h






