#include
main(){
int answer;
for(int index = 12; index >= 1; i--){
answer=3*i;
cout<
-iostream.h should be iostream
-it's int main
-you're mixing index with the variable i
etc etc and use[code][/code] tags next time.
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
Keep it simple:
for (int i = 12; i; i--)
cout << i << " times 3 = " << 3*i << '\n';
;)
ArkM
Postaholic
2,001 posts since Jul 2008
Reputation Points: 1,234
Solved Threads: 348