DC motor Driver control with L298N Driver

sdfdsf

That code talks about steppers...

yes it is. so how can I do for the stepper motor as I wanted in my problem ?

Perhaps you should start again and explain exactly which motors you have and how you have
connected everything with a diagram... You have only mentioned DC motors and a motor-shield,
not stepper motors or stepper drivers.