Answers for "subrange variables pascal"

1

subrange variables pascal

program exSubrange;
var
marks: 1 .. 100;
grade: 'A' .. 'E';
begin
 writeln( 'Enter your marks(1 - 100): ');
 readln(marks);
 writeln( 'Enter your grade(A - E): ');
 readln(grade);
 writeln('Marks: ' , marks, ' Grade: ', grade);
end.
Posted by: Guest on September-03-2021

Browse Popular Code Answers by Language