Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 0 additions & 66 deletions Conversions/decimal _to_binary.c

This file was deleted.

27 changes: 27 additions & 0 deletions basic algos/New Text Document.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#include<stdio.h>
#include<math.h>
void main()
{
int n;
printf("enter a number");
scanf("%d",&n)
d=-1,r=0,e;int g=n;//we can take the input from the user of any length its just an example taken
while(g>0)
{
int x=g%10;
d++;
g=g/10;

}
while(n>0)
{
e=n%10;
r=r+(e*pow(10,d));
d--;
n=n/10;


}
printf("%d",r);

}
66 changes: 0 additions & 66 deletions conversions/decimal _to_binary.c

This file was deleted.