I need C program which can execute programs on P4,1 GB Ram, Intel 865g motherboard.
I tried some C programs but they sometimes execute and sometimes don't.
And i m getting problem in this Program
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c;
float d;
printf("PROGRAM a*b/c");
printf("\nEnter value of a:");
scanf("%d",&a);
printf("Enter the value of b:");
scanf("%d",&b);
printf("Enter the value of c");
scanf("%d",&c);
d= a*b/c;
printf("The value of d is: %f",d);
getch();
}
but the error is cming Declaration is not allowed - highlighting int a,b,c
and float d;
Will any1 tell me whats wrong in it ?