int i, sum;
/* example using while */
sum = 0;
i = 1;
while (i <= 100) {
sum += i;
++i;
}
/* example using for */
sum = 0;
for (i = 1; i <= 100; ++i) sum += i;
x -=y;
int n = 1312;
Function sum_odd_digits(ByVal number As Integer) As Integer Dim digit As Integer sum_odd_digits = 0 While number <> 0 digit = number Mod 10 If digit And 1 Then sum_odd_digits = sum_odd_digits + digit number = number / 10 End While End Function
Dim intNumber As Integer
Well, isn't that a happy little question! To write a salary as an integer, you simply write the whole number part of the salary without any decimal or fractional parts. It's like painting a clear blue sky, just write the number without any extra bits, and you'll have a beautiful, whole integer salary on your canvas.
31 is an integer.
001 is the same as the integer 1 and so you would write it as 1.001 is the same as the integer 1 and so you would write it as 1.001 is the same as the integer 1 and so you would write it as 1.001 is the same as the integer 1 and so you would write it as 1.
It is an integer, not a fraction, but if you must, you could write it as 147000/1.It is an integer, not a fraction, but if you must, you could write it as 147000/1.It is an integer, not a fraction, but if you must, you could write it as 147000/1.It is an integer, not a fraction, but if you must, you could write it as 147000/1.
-14,494
The number 5789 is already an integer.
1440 is an integer.
x -=y;
187 is already an integer because it is a whole number
500% as an integer or whole number is 5
2,000,000 an integer is any whole number
-(17)
300