#include <stdio.h>
#include <stdlib.h>
#include<math.h>
#include"BASE.h"
#include"fun_5.h"
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]){
int n,q;
while(1){
printf("Enter 1 to start the program\n");
scanf("%d",&q);
/*if cycle*/
if (q==1){
/*enter function*/
printf( "1.Decimal to Binary\n2Make a pattern output\n3.Determine what triangle it is\n4.Sum of any two digit number\n5.What is the volume of the sphere\n6.How many leap years have you been born\nPlease choose\n");
scanf("%d",&n);
/*switch cycle*/
switch(n){
case 1:{
int n,h;
printf("Please input the number\n");
scanf("%d",&n);
h=DecimalToBinary(n);
printf("%d\n",h);
break;}
case 2:{
double radius;
printf("enter radius:");
scanf("%lf",&radius);
printf("Volume=%lf\n",Volume(radius));
break;}
}
}
else
printf("Input error");
break;
}
return 0;
}