Interviews Questions, Algorithms, Aptitude, C Interview Program, C Theory Question, Aptitude Tricks, Test Series,

Monday 13 May 2019

Sum

Question:

CASE 1:
Write a program to find Sum of digits of a number

CASE 2:
Write a program to find Sum of N natural numbers

CASE 3:
Write a program to find Sum of numbers in a given range

Solution:

CASE 1:



CASE 2:


CASE 3:


0 comments:

Post a Comment