I am going to assume you want a program to print out the Fibonacci series.
#include <stdio.h>
int main(int argc, char **argv)
{
if (argc < 2) {
printf("Usage: %s max\n", argv[0]);
return -1;
}
int a = 1, b = 1, c;
int max = atoi(argv[1]);
printf("%d %d ", a, b);
while (b < max) {
c = a + b;
a = b;
b = c;
if ((b <= max)) printf("%d ", b);
}
printf("\n");
return 0;
}
You will be able to understand C programs. Also to write C programs.
A C++ program can be used to write C programs that will display 10 lines of biodata. Many types of C programming can be written with a C++ program.
You don't have to write palindrome programs in wikipedia.
write a program to print the series 1/12+1/22+.........+1/n2 ?
In "real life" as opposed to what? C is a programming language. It's used to write computer programs. It (and variants, like C++ and C#) are used to write probably the majority of programs in use today.
A programmer can write programs in C, but C can't write anything by itself.
You will be able to understand C programs. Also to write C programs.
A C++ program can be used to write C programs that will display 10 lines of biodata. Many types of C programming can be written with a C++ program.
You can write computer-programs in it.
You don't have to write palindrome programs in wikipedia.
To write programs in it. A prominent example is UNIX.
Please do.
It is the "Tower of Hanoi" and it is a puzzle. When you can solve the puzzle you can write the program, when you have learned enough to write simple programs. You do want to be able to write computer programs, don't you?
You cannot, but you can use any text-editor to write C sources.
of course he did
You can write, compile and execute C-programs in both DOS and Unix, if that's what you meant.
Exactly what do you mean by 'C program in Java'