HOME

Start

Control Statements

Array

Function

Structure

Pointer

File

Projects

 

 

 

 

 

 

C programing

Ckalari.com is the No.1 website to get the best of C programs, free source codes, projects in c language……  

A C program to find square and cube of given number

#include<stdio.h>

#include<conio.h>

void main()

{

int n,sq,cu;

clrscr();

printf("Enter a no.");

scanf("%d",&n);   

sq=n*n;   

cu=n*n*n;   

printf("Squre is %d",sq);

printf("cube is %d",cu);

getch();

}

Copyright © 2007-2008 www.ckalari.com