if i format c and install vista there will i lose any data on the 2 other partisions ?
No, as long as you don't wipe out the wrong partition by mistake.
after installing vista will i have to format the other partisions aswell or no ?
It always is a good idea to backup your data. Hard disks can fail and mistakes do happen.