| | |
Give me a Problem
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
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 |
Tag cloud for C
adobe ansi api append array arrays bash binarysearch centimeter char character cm convert copyanyfile copypdffile createcopyoffile createprocess() csyntax directory dynamic execv feet fflush fgets file floatingpointvalidation fork frequency function getlasterror getlogicaldrivestrin givemetehcodez global graphics gtkgcurlcompiling hardware highest homework i/o ide infiniteloop initialization interest intmain() kilometer lazy license linked linkedlist linux linuxsegmentationfault list match matrix meter microsoft multi mysql oddnumber odf open openwebfoundation pattern pause pdf pointer pointers posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition scheduling segmentationfault send shape single socketprogramming spoonfeeding stack standard strchr string strings structures suggestions system test testautomation unix urboc user voidmain() win32api windows.h






