Forum: C Jun 21st, 2004 |
| Replies: 12 Views: 15,583 I wrote this code that checks whether a number is prime or not. It returns 1 if the number is prime or 0 otherwise. U just look at the bottom of the code...
#include<stdio.h>
#include<conio.h>... |
Forum: C Jun 5th, 2004 |
| Replies: 2 Views: 3,407 I was trying to do some simple exercises on recursive functions:
1. Write a function using Recursion to print numbers from n to 0.
My solution:
int integer(int n)
{
if(n>=0)
... |