Skip to end of metadata
Go to start of metadata

a)

function printDays ( days )
	for week = 1:6
		for day = 1:7
			if days (week , day ) == 0
				fprintf ('   ');
			else
				if days (week , day ) < 10
					fprintf (' ');
				end
				fprintf ('%d ', days (week , day ));
			end
		end
	fprintf ('\n');
	end
end

 

b)

function printCalendar ( year , month )
	monthName = getMonthName ( month );
	days = getCalendar ( year , month );
	fprintf (' %s %d\n', monthName , year );
	fprintf ('ma ti on to fr lo so\n');
	printDays ( days );
end

Sidetype

Ferdig

Undersider, revidert

Undersider, til revisjon

løsning

95

0

0

  • No labels