for the codes under for loop this error massage is showing
19:37 C:\Users\azr\Desktop\Untitled1.c invalid suffix "xy" on integer constant
#include<stdio.h>
#include<conio.h>
#define func(x,y) 3xy
int main()
{
int x0,y0,n,y1,k1,k2,k3,k4,h;
printf("enter the values");
printf("enter x0:");
scanf("enter x0:%d",&x0);
printf("enter number of x values:");
scanf("no. of x values:%d",&n);
printf("value of hight h");
scanf("value of hight h is :%d",&h);
printf("the value of y0");
scanf("the value of y0 is :%d",&y0);
for(;x0<n;x0=x0+h){
k1=func(x0,y0);
k2=func(x0+.5*h,y0+.5*h*k1);
k3=func(x0+.5*h,y0+.5*h*k2);
k4=func(x0+h,y0+h*k3);
y1=h+(1/6)*(k1+2*k2+2*k3+k4);
printf("y1=%d",y1);
y0=y1;
}
getch();
}
can any please help me with this !!!!
thanks