Search Results

Showing results 1 to 2 of 2
Search took 0.01 seconds.
Search: Posts Made By: Asif_NSU ; Forum: C and child forums
Forum: C Jun 21st, 2004
Replies: 12
Views: 15,583
Posted By Asif_NSU
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
Solved: Recursion
Views: 3,407
Posted By Asif_NSU
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)
...
Showing results 1 to 2 of 2

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC