Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags

4 Posted Topics

Member Avatar for krizz

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]

Member Avatar for anirudhbsg
0
1K
Member Avatar for Member #13457

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 << …

Member Avatar for Narue
0
194
Member Avatar for kamlesh_ag07

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 …

Member Avatar for ChaseVoid
0
107
Member Avatar for kamlesh_ag07
Member Avatar for Member #46692
0
90

The End.