cls
input "enter a no"; num
if num mod 14= num then
print "no is divisible"
else
print "not divisible"
end if
end
No it is not divisible by 7
In GW-BASIC, you can print even numbers from 1 to 100 using a simple loop. Here’s a sample code: FOR i = 1 TO 100 IF i MOD 2 = 0 THEN PRINT i NEXT i This program iterates through numbers 1 to 100 and prints each number if it is even (i.e., divisible by 2).
23 is not divisible by 7.
No, but 504 is divisible by 7.
all numbers are divisible by 7.
7 is not divisible by 104 and 104 is not divisible by 7.
Not only is 119 divisible by 7 but it is evenly divisible by 7.
No it is not divisible by 7
No, but 504 is divisible by 7.
23 is not divisible by 7.
no 7 is divisible by 14. :)
In GW-BASIC, you can print even numbers from 1 to 100 using a simple loop. Here’s a sample code: FOR i = 1 TO 100 IF i MOD 2 = 0 THEN PRINT i NEXT i This program iterates through numbers 1 to 100 and prints each number if it is even (i.e., divisible by 2).
Reference:http:cprogramming-bd.com/c_page2.aspx# strange number
No, 604 can't be divisible by 7.
all numbers are divisible by 7.
No, 7 is a natural number divisible by 7 and not 14 for example. In fact every odd multiple of 7 (i.e. 7 times 1,3,5,7,...) is divisible by 7 and not 14.
No, 364 is not divisible by 7. When you divide 364 by 7, you get a remainder of 0. Therefore, 364 is divisible by 7.