Pascal: Variables and Math

Example: Variables and Data Types in Pascal


	program BowlingScore;

	var 
	name: string = 'John Smith';
	score: integer = 158;

	begin
		writeln(name, ' had a bowling score of ', score);
	end.
	

Output:

  John Smith had a bowling score of 158