//Simple Sample 'while' statement
//Giame Carlos Fajardo Santos
#include <iostream>
using namespace std;
main(){
system("color a");
int i=1;
while(i<=5){
cout<<i;
i++;
}
}
Simple sample of the WHILE statement that print on screen:
1
2
3
4
5
1
2
3
4
5
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.