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 programe print the sum of series 0,1,2,.....10

Answers were Sorted based on User's Feedback



Write a programe print the sum of series 0,1,2,.....10..

Answer / nithya

#include<stdio.h>
main()

{
int i,sum=0;
printf("sum of the series is");
for(i=0;i<10;i++)
{

sum=sum+i;
printf("%d",sum);
}

Is This Answer Correct ?    16 Yes 5 No

Write a programe print the sum of series 0,1,2,.....10..

Answer / athiyaman

#include<stdio.h>
void main()
{
int i,sum=0;
for(i=0;i<=10;i++)
sum=sum+i;
printf("sum=%d",sum);
}

Is This Answer Correct ?    6 Yes 0 No

Write a programe print the sum of series 0,1,2,.....10..

Answer / manjushree

Answer #2 doesnot count for integer 10.

int main()
{
int i,temp=0;
printf("sum of series is:");
for(i=0;i<10;i++)
temp+=i;
printf("%d",temp);
getch();
}

Is This Answer Correct ?    3 Yes 2 No

Write a programe print the sum of series 0,1,2,.....10..

Answer / akash patil

#include<stdio.h>
voind main()
{
int n=10;
printf("sum is %d",n*(n+1)/2;
getch();
}

Is This Answer Correct ?    1 Yes 0 No

Write a programe print the sum of series 0,1,2,.....10..

Answer / mrs.ahmer

#include<stdio.h>
#include<conio.h>
void main()
{
int c,sum;
clrscr();
c=0;
sum=0;
while(c<=10)
{
printf("%d\n",c);
sum=sum+c;
c=c+1;
}
printf("sum is %d",sum);
getch();
}

Is This Answer Correct ?    0 Yes 0 No

Write a programe print the sum of series 0,1,2,.....10..

Answer / sevak.yatrik777

main()
{
int i;
printf("sum of series is:");
for(i=0;i=10;i++)
i=i+i;
scanf("%d",&i);
printf("%d",i);
}

Is This Answer Correct ?    0 Yes 0 No

Write a programe print the sum of series 0,1,2,.....10..

Answer / s.m.jyo

main()
{
int i;
printf("sum of series is:");
for(i=0;i=10;i++)
i=i+i;
scanf("%d",&i);
printf("%d",i);
}

Is This Answer Correct ?    7 Yes 9 No

Post New Answer

More C Interview Questions

Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

0 Answers   CSC, Wipro,


Is it better to bitshift a value than to multiply by 2?

0 Answers  


write a function to find whether a string is palindrome or not and how many palindrome this string contain?

2 Answers   Aptech,


Why is c still so popular?

0 Answers  


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

0 Answers  


explain memory layout of a C program

2 Answers  


HOW TO HANDLE EXCEPTIONS IN C

8 Answers  


What are comments and how do you insert it in a C program?

0 Answers  


Explain following declaration int *P(void); and int (*p)(char *a);

3 Answers  


what are non standard function in c

0 Answers  


can we access one file to one directory?

1 Answers  


What are two dimensional arrays alternatively called as?

0 Answers  


Categories