Slide 9 a variable can be initialized in a declaration int x=3 Several variables of the same type can be declared in the same declaration( though it is better to put them on separate lines) int height, width; A variable must have only one type. For example, a variable of the type int can only hold integer valuesSlide 9 • A variable can be initialized in a declaration: int x = 3; • Several variables of the same type can be declared in the same declaration (though it is better to put them on separate lines): int height, width; • A variable must have only one type. For example, a variable of the type int can only hold integer values