- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 4
- Posts with Downvotes
- 2
- Downvoting Members
- 3
- Interests
- Programming, puzzles, problem solving.
4 Posted Topics
Re: Here is the Code as per your requirement. #include <stdio.h> int main(){ int terms, lastNumber=1,secondLast=0,currentNumber=0,counter; printf("Enter number of terms in Fibonacci series: "); scanf("%d", &terms); /* * Nth term = (N-1)th therm + (N-2)th term; */ for(counter = 0; counter < terms; counter++){ if(counter < 2){ currentNumber = counter; } … | |
Re: Algorithm to check whether a number(N) is prime number or not. For every number i, between 2 to N/2(2<= i <= N/2) check whether i divides N completely(check If i is a factor of N). * if (N % i == 0), then N cannot be a Prime number. * … | |
Re: Check this star triangle pattern program: * * * * * * * * * * * * * * * * * * * * * #include<stdio.h> #include<conio.h> int main() { int i,j,rows; printf("Enter the number of rows\n"); scanf("%d", &rows); for(i = 1; i <= rows; i++) { /* … | |
Re: Here is some Sample Graphics programs in C using Turbo C compiller to start with. [Turbo C Graphics programs](http://www.techcrashcourse.com/2015/08/c-graphics-programming-tutorial.html) You can check this [animation program in C for moving car](http://www.techcrashcourse.com/2015/08/c-graphics-program-moving-car-animation.html). |
The End.