Wap to print series from 1 to 10 & find its square and cube, C/C++ Programming

WAP TO PRINT SERIES FROM 1 TO 10 & FIND ITS SQUARE AND CUBE

# include stdio.h>

# include conio.h>

# include math.h>

 

void main ()

{

int a=1,sqr=0,cube=0;

clrscr ();

while (a<=10)

{

sqr=pow(a,2);

cube=pow(a,3);

printf ("%d\t %d\t %d\n",a,sqr,cube);

a++;

}

getch ();

}

 

Posted Date: 9/10/2012 9:16:21 AM | Location : United States







Related Discussions:- Wap to print series from 1 to 10 & find its square and cube, Assignment Help, Ask Question on Wap to print series from 1 to 10 & find its square and cube, Get Answer, Expert's Help, Wap to print series from 1 to 10 & find its square and cube Discussions

Write discussion on Wap to print series from 1 to 10 & find its square and cube
Your posts are moderated
Related Questions
Define Four Facilities Provided by C Language Preprocessor? The C language preprocessor provides four separate facilities that you can use as you see fit:   Inclusion

C CODE FOR PEBBLE MERCHANTS PROBLEM

F r i e n dly Function: A class can have public members and private members.   The public member can be used through the class using dot operator.   Where as private me

Define the Data File in C Programming? Many applications needs that information can written to or read from an auxiliary memory device. Such information is stock up on the memo

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Define global variable in c++ program: How to define a global variable and need of global variable in c++ program. int main() {    int m=20;    clrscr();    for

Q: In p = new Fred(), does the Fred memory "leak" if  Fred constructor throws an exception? A: No.         If an exception take place during the Fred constructor of p = new F

What are the various types of control structures in programming? - Primarily there are 3 types of control structures in programming: Sequence, Selection and Repetition. - Se

A function REPAT is specified below. Function REPAT(c in Char, i in Int, s in mString) return in mString pre 1 ≤ i ≤ the length of s. post The returned value is a string identic

smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send