//Simple Sample 'for' statement
#include <iostream>
using namespace std;
main(){
int i;
for(i=1;i<=5;i++){
cout<<i<<"\n\t";
}
}
Simple sample of the FOR 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.