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;
Solution:
Because of all software systems have common quality attributes, including
Fundamental software engineering activities. The four basic process activities of specification, development, validation and evolution are organized differently in different development processes. The software is implemented either by developing a program or programs or by configuring an application system. Such that at they (Software engineer) have been made keeping in mind project development. They hence, apply to all software systems and even non software systems. They are the fundamentals for any kind of project development.
Thus this is the required answer..
Answer:
home page (also written as homepage) is the main web page of a website.
Ans 2
When you first open a word processor document you will find a document with the default indents and margins.
In order to adjust the document indentations the easiest way to do this is to place the cursor where you want the indent to be and then adjust the indent arrow on the ruler at the top of the document to the appropriate value.