DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦df8e10b5f⟧ TextFile

    Length: 295 (0x127)
    Types: TextFile
    Names: »main.c«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦this⟧ »EUUGD11/euug-87hel/sec1/yearlength/main.c« 

TextFile

#include <stdio.h>


main()
{
    int days_in_year();
    int year;
    int country_code;
    
    while (1)
    {
	printf("\nEnter year and country code: ");
	if (scanf("%d %d", &year, &country_code) == EOF)
	    exit(0);

	printf("it has %d days\n", days_in_year(year, country_code));
    }
}