+ 2
When would you use int, char?
6 ответов
+ 9
Use the INT function when you want only the integer part of a decimal number, and it's ok to always round the number down. For example, INT (3.99) returns the number 3. It's important to note that INT actually rounds down numbers to the next lowest integer value.
Char. The abbreviation char is used as a reserved keyword in a number of programming languages, such as C, C++, C#, and Java. It is short for character, which is a data type that holds one character (letter, number, etc.) of data.
+ 5
no problem ^^
+ 2
ok awesome thanks, but in the lesson they use var. when would you use var instead int for a number?
+ 2
thank you
0
var is used to define a variable. int, char are the data types of a variable