Write a program to read any number of values given in command line and sum up all the number, ignore if any non-number values are given
Answers
Answered by
0
Answer:
Sum of digits in C
#include <stdio.h>
int main()
{
int n, t, sum = 0, remainder;
printf("Enter an integer\n");
scanf("%d", &n);
t = n;
while (t != 0)
Similar questions
English,
6 months ago
English,
6 months ago
English,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Chemistry,
1 year ago
Chemistry,
1 year ago