Answer Posted / guest
#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%10);
n=n/10;
}
printf("sum is %d",sum);
return 0;
}
| Is This Answer Correct ? | 16 Yes | 2 No |
Post New Answer View All Answers
What is the difference between formatted&unformatted i/o functions?
What does %p mean?
What is the process of writing the null pointer?
How to establish connection with oracle database software from c language?
What is the difference between variable declaration and variable definition in c?
What is the return type of sizeof?
Is there sort function in c?
What is pre-emptive data structure and explain it with example?
application attempts to perform an operation?
What do you mean by Recursion Function?
Why is it that not all header files are declared in every C program?
write a c program in such a way that if we enter the today date the output should be next day's date.
Write a program to maintain student’s record. Record should
not be available to any unauthorized user. There are three
(3) categories of users. Each user has its own type. It
depends upon user’s type that which kind of operations user
can perform. Their types and options are mentioned below:
1. Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record)
2. Super Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record, Delete Single Record)
3. Guest
(Search Record [by Reg. No or Name], View All Records)
When first time program runs, it asks to create accounts.
Each user type has only 1 account (which means that there
can be maximum 3 accounts). In account creation, following
options are required:
Login Name: <6-10 alphabets long, should be unique>
Password: <6-10 alphabets long, should not display
characters when user type>
Confirm Password:
what is the diffrenet bettwen HTTP and internet protocol
How do you use a 'Local Block'?