Skip to content

Commit

Permalink
Merge pull request #406 from agnibhasinha/in-378
Browse files Browse the repository at this point in the history
#378 Added code to q 110
  • Loading branch information
Math-O5 authored Dec 13, 2020
2 parents 8a59083 + c6a22f0 commit 82519ed
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions simc-codes/q110.simc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Print sum of numbers divisible by 9 from 100 to 200

MAIN

var sum=0
var num=0
var x=100

while(x<=200)
{
if(x%9==0)
{
sum = sum + x
num = num + 1
}
x = x + 1
}
print("The sum is : {sum} \n")
print("The number of such numbers is : {num}")

END_MAIN

0 comments on commit 82519ed

Please sign in to comment.