Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript Site
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

    


For Loop example
 

 

Description

a for loop example

Code

//program to display a for loop
#include<stdio.h>

int main(void)
{
int num;

printf(" n n cubed\n");
for(num=1;num<=10;num++)
printf("%5d %5d\n", num , num*num*num);
return 0;
}

Information

tested using visual C++ , LCC Win 32

 

 
 

 

Download

forloop1.txt


 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
View contents of your inbox(ASP)
random lines(VB)
Length of a string(ASP)
Slashdot feed(PHP)
another word counting example(php)
Add to de.licio.us(php)
split text up into different rows and insert into an html table(php)
delete files on a floppy disk(VB)

    




Copyright © 2003 by programmershelp.co.uk