Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

c++ sum of ascii string

char str1[50]
//scanf("%s",str1);
int sum_of_ascii = 0;
for(int i = 0; i!= ''; i++){
	sum_of_ascii += str1[i];
}
 
PREVIOUS NEXT
Tagged: #sum #ascii #string
ADD COMMENT
Topic
Name
1+7 =