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
|