No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
according to me the code can be writen in this way. [code] #include <iostream> #include <conio> int sum(int); int x; void main() { int n ; cin >> n ; sum(n) ; cout<<" the sum is"<<x ; getch(); } int sum(int a) { if(a) { return sum(a-1)+a; } } [/code]
This program gets very easy with the use if recursive function if the job is only to print the number in the reverse order. [code] #include <iostream> #include <conio> void rev(int); void main() { int a; cin >> a; rev(a); getch(); } void rev(int a) { if(a) { cout << …
i am new with c++ and as i was going through all the post i found a reserved word i.e. namespace. i am unable to know what do u mean by this and as i was trying to run the program there was a error telling "namespace name required". i …
can anyone do recursive binary search using a single argument
The End.
kamlesh_ag07