this is what I got, I don't know if the math is right though

Code:

#include <iostream.h>
main()
{
float deg1, min1, sec1, deg2, min2, sec2, sum_deg, sum_min, sum_sec;
cout<<"what is degree1? ";
cin>>deg1;
cout<<endl<<"min1? ";
cin>>min1;
cout<<endl<<"sec1? ";
cin>>sec1;
cout<<endl<<"deg2";
cin>>deg2;
cout<<endl<<"min2";
cin>>min2;
cout<<endl<<"sec2";
cin>>sec2;
sum_deg=deg1+deg2;
sum_min=min1+min2;
if(sum_min>60)
{
sum_deg++;
sum_min=sum_min-60;
}
sum_sec=sec1+sec2;
if(sum_sec>60)
{
sum_min++;
sum_sec=sum_sec-60;
}
cout<<endl<<"answer= "<<sum_deg<<" degrees "<<sum_min<<" minutes "<<sum_sec<<" seconds ";
return(0);
}