Answer:
#include <stdio.h>
#include <string.h>
int main(){
char number[100];
printf("Number: ");
scanf("%s", number);
int sum = 0;
for(int i =0;i<strlen(number);i++){
sum+= number[i] - '0';
}
printf("Sum: %d",sum);
return 0;
}
Explanation:
This declares a c string of 100 characters
char number[100];
This prompts user for input
printf("Number: ");
This gets user input
scanf("%s", number);
This initializes sum to 0
int sum = 0;
This iterates through the input string
for(int i =0;i<strlen(number);i++){
This adds individual digits
sum+= number[i] - '0';
}
This prints the calculated sum
printf("Sum: %d",sum);
return 0;
The practice of taking someone else's work or ideas and passing them off as one's own.
The element of website design that refers to the website's aesthetic appeal and the functional look and feel of the site's layout and visual design is known as context.
<h3>What is webpage context?</h3>
The web page context is known to be a kind of special ID that is is formed with all the new page load event.
The context of a website is known to be the point or place where a person can show their visitors that one care. It gives a kind of website's aesthetic appeal and the functional look.
Learn more about website design from
brainly.com/question/25941596
Answer: jpeg because its a lot of people use it for quaity