Posts

Showing posts from May 2, 2013

Print Prime and Sum

Write a C program to print all the prime numbers between 1 and 50 and sum of all printed primes.  

Digit split and sum

Write a program to split all the digit from a given integer input and make sum of all  digits. Sample Input: 13245 Sample Output: The digits are: 1 3 2 4 5 Sum: 6