fn f(x)

{ if(x<=0)
return;
else f(x-1)+x;
}

Answer Posted / kamal

f(x-1)+x

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

find out largest elemant of diagonalmatrix

1651


Write a program in c to replace any vowel in a string with z?

697


How can I find the modification date and time of a file?

604


Is return a keyword in c?

598


What is a pointer variable in c language?

645






What’s a signal? Explain what do I use signals for?

606


the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset

640


Explain what is dynamic data structure?

646


What is the meaning of c in c language?

596


What is local and global variable in c?

616


How do we print only part of a string in c?

587


How can I get the current date or time of day in a c program?

652


What is the best way of making my program efficient?

571


Why does not c have an exponentiation operator?

629


What does c mean before a date?

592