Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a 'c' program to sum the number of integer values

Answer Posted / arunkumar

#include<stdio.h>
#include<conio.h>

fun(int n);
int main()
{
int n=10;
printf("%d",fun(10));
}
fun(int n)
{
if(n<1)
return n;
else
return (n+fun(n-1));
}

Is This Answer Correct ?    5 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between functions getch() and getche().

1000


How do you list files in a directory?

1090


develop algorithms to add polynomials (i) in one variable

2119


Can you write the function prototype, definition and mention the other requirements.

1096


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

2158


how do you execute a c program in unix.

1083


What is void main ()?

1031


What is the auto keyword good for?

1081


What are runtime error?

1092


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

3207


‎How to define structures? · ‎

1037


What are different types of operators?

996


What is structure padding and packing in c?

1015


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

1186


What is keyword in c?

971