hi,
this is the code:
#include <stdio.h>
main()
{
int m1, m2, m3, m4, m5, per;
printf("Enter marks in five subjects\n");
scanf("%d%d%d%d%d",&m1,&m2,&m3,&m4,&m5);
per=(m1+m2+m3+m4+m5)/5;
if(per>=60)
printf("first division\n");
if((per>=50) && (per<60))
printf("second division\n");
if((per>=40) && (per<50))
printf("third division\n");
if(per<40)
printf("fail\n");
}
this is the output for:
[root@localhost lbin]# gcc -o division division.c
division.c:30:1: warning: no newline at end of file
The executable file division is runing successfully,just i want to know why there is the error 'no newline at the end of file' although i hit the <return> in the end of file 'after }' three times.
plz help me.
:-|