View Single Post
Old 30-10-2007, 07:17 PM   #367 (permalink)
Gigacore
Dreamweaver
 
Gigacore's Avatar
 
Join Date: Aug 2006
Location: Bangalore
Posts: 3,904
Default Re: Post ur C/C++ Programs Here

A Simple C Program to Display the number and its square from 1 to 10 using register variable.

Code:
#include <stdio.h>
#include<conio.h>
void main()
{
		register int count, sqr;
	for(count=1;count<=10;count++)
	{
		sqr=count*count;
		printf("\n%d%d",count,sqr);
	}
getch();
}
EDIT: I added a list of all the PROGRAMS in this thread
__________________
Today's noobs are tomorrow's geeks. Don't make fun of them.. encourage them. - Gigacore

Follow me on twitter.com/gigacore

Last edited by Gigacore; 30-10-2007 at 07:17 PM. Reason: Automerged Doublepost
Gigacore is offline