Both cycling and treadmill can cause knee pain if not done with proper technique or if you have prior knee injuries. It is important to consult with a doctor or trainer before starting any new exercise routine.