home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sams Teach Yourself C in 21 Days (6th Edition)
/
STYC216E.ISO
/
mac
/
Examples
/
Day21
/
list2101.c
< prev
next >
Wrap
C/C++ Source or Header
|
2002-08-11
|
260b
|
16 lines
/* Inputs a number and displays its square. */
#include <stdio.h>
#include "calc.h"
int main( void )
{
int x;
printf("Enter an integer value: ");
scanf("%d", &x);
printf("\nThe square of %d is %ld.\n", x, sqr(x));
return 0;
}