#include struct jikan { int ji; int fun; int byou; }; int main(void) { struct jikan a,b,c; int hour, min, sec; a.ji=14;a.fun=45;a.byou=30; b.ji=16;b.fun=15;b.byou=00; hour=b.ji-a.ji;min=b.fun-a.fun;sec=b.byou-a.byou; if(sec<0) sec+=60; min-=1; if(min<0) min+=60; hour-=1; c.ji=hour;c.fun=min;c.byou=sec; printf("Elapsed time %d h. %d min. %d sec.\n", c.ji, c.fun, c.byou); return 0; }