#include<iostream>
int main()
{
int x=0, y=1;
std::cout<<x<<" ";
std::cout<<y<<" ";
while( y<1000000 )
{
std::cout<<(y+=x)<<" ";
x=y-x;
}
std::cout<<std::endl;
return(0);
}
You can write a C++ fib pro using arrays but the problem is the prog becomes very complicated since u need to pass the next adding value in an array.....
You mean you have written a program, but you don't understand it? Well, how could I explain it without seeing it?
d a tool for analysing c plus plus program
Every C plus plus program that is a main program must have the function 'main'.
example output of c++ calculator
i dn't know. haha
#include #include void main() { clrscr() int a=0,b=1,c,i,n; coutn cout
Exactly what do you mean by 'C program in Java'
Yes, this can be done. For example for Fibonacci series. You will find plenty of examples if you google for the types of series you need to be generated.
You can write a C++ fib pro using arrays but the problem is the prog becomes very complicated since u need to pass the next adding value in an array.....
Yes, you can program games with C++.
You mean you have written a program, but you don't understand it? Well, how could I explain it without seeing it?
see the program
Exit the program and relaunch it.
d a tool for analysing c plus plus program
By learning how to program on C+.
C++ is an extension of C, and was invented by Bjarne Stroustrup.