This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
void convert(float num,float base) | |
{ | |
int a[30]; | |
int num1,k; | |
num1=num; | |
num=num-num1; | |
int t; | |
a[0]=num1%(int)base; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<math.h> | |
#define e 2.718281828 | |
#define pie 3.141592654 | |
using namespace std; | |
double r; | |
int m; | |
float num; | |
double ea; | |
int flag; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<string.h> | |
#include<math.h> | |
#include<cctype> | |
using namespace std; | |
int bd[30],ad[30],l_bd,l_ad,flag; | |
void change(char a[30],int n,int base) | |
{ | |
int i=0,j=0; | |
while(a[i]!='.'&&i<n) |