Guys I've reached up to this and I don't know if what I did is right or not, also I've stucked I don't know how to proceed with it !?
Code:
#include <stdio.h>
#include <math.h>
int main(void) {
int x;
double y;
printf("Choose the input method\n");
printf("1.Decimal degrees\n");
printf("2.Degrees, minutes and second\n");
printf("3.Degrees and minutes\n");
printf("\n");
scanf("%d",&x);
printf("\n");
if (x==1){
printf("Enter Decimal degrees");
printf("\n");
scanf("%lf",y);
DMS =
}
else if (x==2){
printf("Enter Degrees, minutes and second");
printf("\n");
}
else if (x==3){
printf("Enter Degrees and minutes");
printf("\n");
}
else {
printf("The input does not exist");
}
scanf("%lf",&y);
printf("\n");