Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * convertor.c
- *
- * Created on: Mar 8, 2014
- * Author: student
- */
- #include <stdio.h>
- int main (void)
- {
- int a,c;
- printf("introduceti numarul: ");
- scanf("%d",&a);
- printf("numarul in binar este: ");
- while(a>0)
- {
- c=a%2;
- a=a/2;
- printf("%d",c);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement