كود:
#include <stdio.h>
#include <conio.h>
#include <math.h>
main void ()
{ int H1,H2,H3,H4,M1,M2,M3 ;
printf(" please enter the time of the flight %d%d",H1,M1);
scanf("%d%d",H1,M1);
printf("please enter how long the flight take%d%d",H2,M2);
scanf("%d%d",H2,M2);
(H3 = H1+H2);
if (H3 <=12)
{
printf("you will reach the city at %d",H3);
printf("a.m");
}
if else ( H3>12)
{
H3=(H1+H2)-12 ;
printf("you will reach the city at %d",H3);
printf("p.m");
}
M3 = M1 + M2 ;
if ( M3<60);
printf (%d,&M3);
else if ( M3>=60)
printf("( M1+M2)-60"),M3 ;
printf("H1+H2+1",H3);
getch ();
}
هل من الممكن معاينة كودي ؟
يطلع لي ان في خطأ واحد في الـ main void !