Accenture Coding Question | Associate Software Engineer | Cocubes | Programming Question Solved.

Опубликовано: 06 Май 2026
на канале: Instructors Point
6,780
81

Buy TCS NQT Placement preparation book- https://amzn.to/32Wc3Gl
Buy TCS National Qualifier Test Study Guide Paperback - https://amzn.to/2RToUTr
Buy Campus Recruitment Test Guide Paperback - https://amzn.to/32WJtoq
Buy A Complete Manual for Campus Placements Paperback - https://amzn.to/35YGI7I
Buy Quantitative Aptitude for Competitive Examinations - https://amzn.to/347xt2P
A Modern Approach to Logical Reasoning (2 Colour Edition) Paperback- https://amzn.to/2EtLtuQ
Problem Statement-

Problem Statement - Implement the following Function

def differenceofSum(n,m)
The function accepts two integers n, m as arguments Find the sum of all numbers in the range from 1 to m, both inclusive that are not divisible by n. Return difference between the sum of integers not divisible by n with the sum of numbers divisible by n.

Assumption:

The sum lies between the integral range
Example

Input
n:4
m:20
Output
90

NCR CORPORATION | CoCUBES Coding | SOLVED -    • NCR CORPORATION | CoCUBES Coding | SOLVED  
C Programming interview preparation videos visit-    • C Programming tutorials (Placement Prepara...  

Java Basics - Lecture 1 -    • JAVA Basics | Lecture 1 | Part - 1 | Getti...  
OOP concepts video Lecture 2 (Part-2) visit -    • OOP Concepts | JAVA Basics | Part-2 | Gett...  
Hope you will enjoy it......Please like, comment, and subscribe to our channel.



You can Find Us at:
Instagram:  / instructorspoint  

#engineering #accenture
#placementpreparation
#Java
#interviewprepration
#instructorspoint