a C++ program.
output:
0
0 2
0 2 4
0 2 4 6
0 2 4 6 8
0 2 4 6 8 10
this is my draft:
#include <stdio.h>
#include <iostream>
int main()
{
int i=0;
int x=7;
do
{
i=i+1;
cout<<i;
while(i<=7 )
{
cout<<i;
system("pause");
return 0;
}
< do i need to make a 2 DO's? and 2 WHILE? how can i start this?
MOD EDIT: When posting code...USE CODE TAGS!!!
This post has been edited by JackOfAllTrades: 24 March 2011 - 08:20 AM

New Topic/Question
Reply




MultiQuote






|