By learning how to program on C+.
int i, sum = 0; for (i=0; i<20; i+=2) sum+=i;
nine plus q is in words. 9 + q is in numbers.
You could write it as 8793/100 or 8.793*101.
To swap two variables without using a third variable, use exclusive or manipulation... a ^= b; b ^= a; a ^= b;
how to write a program that counts automorphic number from 1 to 999
By learning how to program on C+.
You don't write an algorithm for a C++ program, unless you are documenting the C++ program after-the-fact. The normal procedure is to write the algorithm first, in a language independent fashion, and then translate that stated algorithm into C++ code, or into whatever language you wish.
Write your program and if you are having a problem post it here with a description of the problem you are having. What you are asking is for someone to do your homework for you.
int i, sum = 0; for (i=0; i<20; i+=2) sum+=i;
#include<iostream> int main() { int i=0; while(i++<10) std::cout<<i*i<<std::endl; }
This question is irrelative because C++ is a language and Excel is a software. The thing is that we can't use C++ with Excel, but we can write a program like excel in C++.
Don't write, it is already written, google for 'cpp'.
#include <iostream> int main() { for(int i=51; i <= 100; i+=2) { cout << i << endl; } return 0; }
Divide it by 1000.
No.
Object Oreinted Programming