program Bookshelves;
vara, b, c, courses, totalBooks, totalShelves: Integer;
beginwrite('Enter the number of books for each course: ');readln(a);
write('Enter the number of shelves in the bookcase: ');readln(b);
write('Enter the number of books that can fit on each shelf: ');readln(c);
write('Enter the number of courses: ');readln(courses);
totalBooks := a * courses;totalShelves := totalBooks div c;
writeln('The number of bookshelves that can be completely filled with books is: ', totalShelves);end.
program Bookshelves;
var
a, b, c, courses, totalBooks, totalShelves: Integer;
begin
write('Enter the number of books for each course: ');
readln(a);
write('Enter the number of shelves in the bookcase: ');
readln(b);
write('Enter the number of books that can fit on each shelf: ');
readln(c);
write('Enter the number of courses: ');
readln(courses);
totalBooks := a * courses;
totalShelves := totalBooks div c;
writeln('The number of bookshelves that can be completely filled with books is: ', totalShelves);
end.