Skip to content

Commit

Permalink
#378 Added code to q 110
Browse files Browse the repository at this point in the history
  • Loading branch information
agnibhasinha committed Dec 13, 2020
1 parent 1f8eeed commit c6a22f0
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 c6a22f0

Please sign in to comment.