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

how to find sum of 5 digits in C?

Answer Posted / rohit

#include<stdio.h>
int main()
{
int n,sum=0;
printf("enter number");
scanf("%d".&n);
for(int i=0;i<5;i++)
{
sum=sum+n;
}
printf("sum is %d",sum);
return 0;
}

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pointer in c?

1175


What are # preprocessor operator in c?

1090


What is the difference between union and anonymous union?

1287


Write a program for Overriding.

1148


How to declare a variable?

991


Explain what is the difference between null and nul?

1135


What are control structures? What are the different types?

1075


What is #line used for?

1015


Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

1051


Explain what is the difference between functions getch() and getche()?

1037


Explain how to reverse singly link list.

1123


What is indirection in c?

1056


What is an arrays?

1061


What is a stream?

1121


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

3692