
seen from United States
seen from United States

seen from Malaysia
seen from Spain
seen from United States
seen from United States
seen from Serbia

seen from Malaysia

seen from United States

seen from Canada
seen from Nicaragua
seen from United States

seen from Germany
seen from China

seen from United States

seen from Thailand
seen from United Kingdom
seen from Germany
seen from United States
seen from Maldives
New Post has been published on Learning Hub
New Post has been published on http://ictjobs.info/program-find-product-2-numbers-recursion-3/
C Program to Find Product of 2 Numbers without using Recursion
#include <stdio.h> int product(int, int); int main() int a, b, result; printf("Enter two numbers to find their product: "); scanf("%d%d", &a, &b); result = product(a, b); printf("Product of %d and %d is %d\n", a, b, result); return 0; int product(int a, int b) int temp = 0; while (b != 0) temp += a; b--; return temp;
Output
Enter two numbers to find their product: 89 458 Product of 89 and 458 is 40762
New Post has been published on Learning Hub
New Post has been published on http://ictjobs.info/program-convert-number-decimal-system-binary-system-recursion-2/
C Program to Convert a Number Decimal System to Binary System using Recursion
#include <stdio.h> int convert(int); int main() int dec, bin; printf("Enter a decimal number: "); scanf("%d", &dec); bin = convert(dec); printf("The binary equivalent of %d is %d.\n", dec, bin); return 0; int convert(int dec) if (dec == 0) return 0; else return (dec % 2 + 10 * convert(dec / 2));
Output
Enter a decimal number: 10 The binary equivalent of 10 is 1010 .
New Post has been published on Learning Hub
New Post has been published on http://ictjobs.info/program-convert-number-decimal-system-binary-system-recursion/
C Program to Convert a Number Decimal System to Binary System using Recursion
#include <stdio.h> int convert(int); int main() int dec, bin; printf("Enter a decimal number: "); scanf("%d", &dec); bin = convert(dec); printf("The binary equivalent of %d is %d.\n", dec, bin); return 0; int convert(int dec) if (dec == 0) return 0; else return (dec % 2 + 10 * convert(dec / 2));
Output
Enter a decimal number: 10 The binary equivalent of 10 is 1010.