No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Discover me.......
- Interests
- Programming
> /* This code works when the added chracter's value is less than or equal to 9. I mean when there is a carry,what will i do to print that. And there should not be used any library function. Run the program and you will understand clearly. */ #include "stdafx.h" … | |
Re:
I'm writing a program to multiply two 4-bit number using add and shift method in C language. The code is as follows: #include <stdio.h> #include <math.h> int main() { int d,p=0, y=1010, x=1101, c, i; for(i=0;i<=3;i++) { c = x % 10; y = y << i; d = c*y; … |