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

construct a console programme for a bank ATM machine.

Polymorphism C++ supports this idea - that different objects do "the right thing "- by function polymorphism and class polymorphism. Poly means many, while morph means form.

Problem #1: plugging the memory leak. When you employ the "normal" new operator, for example Foo* p = new Foo(), the compiler generates some special code to manage the case while t

Program to design text styles: Write a C program to design different text style char *fname[] = { "DEFAULT font",                                   "TRIPLEX font",

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

A: No. If they're utilized properly, they increase encapsulation. You frequently require splitting a class in half while the two halves will have distinct numbers of instances o

Create a pseudocode in getting Calendar Quarter. The program should identify which quarter falls the given date. Note: Consider the date format DDMMYYYY.

Write two different arrays. Store the names in it and then compare if both the names entered by the user are the same.

A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci