---
title: "Comment by Sithembiso Nkosi on \"Developer/Coding Interview Challenge #1\" | Hashnode"
description: "&#39;&#39;&#39;private static void Main(string[] args) { int total = 0; for(int i = 0; i&lt;1000; i++) { if(i%3==0 || i%5==0) { total = total+i; } } Console.Wri"
url: "https://hashnode.com/posts/developer-coding-interview-challenge-1/6422b87be99772dd8292f4e3/comment/64248120ca4beba4126f5565"
---

[Discussion](https://hashnode.com/posts/developer-coding-interview-challenge-1/6422b87be99772dd8292f4e3)

Comment [Developer/Coding Interview Challenge #1](https://hashnode.com/posts/developer-coding-interview-challenge-1/6422b87be99772dd8292f4e3)

[Sithembiso Nkosi](https://hashnode.com/@Edward456)

[Mar 29, 2023](https://hashnode.com/posts/developer-coding-interview-challenge-1/6422b87be99772dd8292f4e3/comment/64248120ca4beba4126f5565)

'''private static void Main(string\[\] args) { int total = 0; for(int i = 0; i<1000; i++) { if(i%3==0 || i%5==0) { total = total+i; }

} Console.WriteLine("Answer:" + total);

}'''
