Computer Science, asked by kaurharjot667, 1 year ago

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 kanika575
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