C Program for Euler Method
#include <stdio.h>
#include <conio.h>
float f(float x,float y)
{return x*y;}
void main()
{
float x0,y0,xn,yn,h;
printf("Enter x0, y0 and h: ");
scanf("%f%f%f",&x0,&y0,&h);
printf("Enter xn: ");
scanf("%f",&xn);
do
{
yn=y0+h*f(x0,y0);
x0=x0+h;
y0=yn;
}while(x0<xn);
printf("y(%0.2f) = %0.4f Ans",xn,yn);
getch();
}
This is my official blog. In this blog I usually post my youtube related content..but sometimes random things can be posted....Thank you for visiting my blog.Hope you enjoy my contents and might be helpfull to you as well
tiovilsubssu_Winston-Salem Gary High https://wakelet.com/wake/EAA6ACXqNtyJDu0NsOKfO
ReplyDeletecarsingwhisfi
morrsupcilji_Salem Shauna Rohan click here
ReplyDeletenerssubckapen
0cupuKinhi-Huntsville Lori Nance FonePaw
ReplyDeleteExpress VPN
SONY Vegas
tersdediscse