Can I use the ipad to program for the iphone/ipad or do I need to have a mac?
The iPad is NOT a computer.
Those, sometimes much less powerful computers than an iPhone, allowed programs to be developed on themselves for themselves.
The iPad is NOT a computer
Thats like asking can i program on an iPhone for an iPhone app...! iPhone and iPad are the same OS.