fn f(x)

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

Answer Posted / gupta

x(x+1)/2

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is bit rate & baud rate? plz give wave forms

1529


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

7420


Do you know the use of 'auto' keyword?

668


the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function

770


What is || operator and how does it function in a program?

639






Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

1721


What is the ANSI C Standard?

787


What is the difference between break and continue?

613


What is the use of parallelize in spark?

582


Why is event driven programming or procedural programming, better within specific scenario?

1955


What is the difference between char array and char pointer?

535


What are the modifiers available in c programming language?

751


write an algorithm to display a square matrix.

2234


Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.

3700


In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none

737