I'm having problem in running this code in Dev C++.
#include<stdio.h>
#include<conio.h>
main()
{
/*
Write a program to calculate overtime pay of 10 employees.
Overtime is paid at the rate of Rs. 12.00 per hour for every hour worked above 40 hours.
Assume that employees do not work for fractional part of an hour.
*/
int sal,pay,re;
for(int i=0;i<=10;i++)
{
printf("Write down your over time(in hours): ");
scanf("%d",&sal);
re = sal - 40;
pay = re * 12;
printf("Your pay is %d ",pay);
}
}
I'm receiving the following error
[Error] 'for' loop initial declarations are only allowed in C99 or C11 mode