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

 

# 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:15:24 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
What are the different types of endless loops? An endless loop can be of two types: i.) A loop that is intentionally designed to go round and round until the condition withi

write a programme that allows a user to enter 5 distinct words and returns them as a single string

In POS system, cashier computer connect to printer using serial rs232 usb or cable. We need to capture data from that connection, and parsing the data to get total amount for every

#C Why don''t online compilers support the header file? What can I do to resolve this? PS. I have tried , does''nt work either. Thannk in advance.

6999066263304447777077766622337778 -----> message sent by the first smuggler. my name is robert---------> message decoded by the second smuggler. Where ‘0’ denotes the "space".

Record separation problem Let us assume that a particular database program manages a simple mailing list which consists of one record for each person on the list, and a number of f

For this program, you are going to modify your previous program (program 3) so that it will now have a menu to see if the user wants to read the input from a file or interactively.

What is the real function of class - to export data? No, Real purpose of a class isn't to export data. Instead, it's to provide services. Class provides a way to abstract behav

Deliverables: you are required to upload your c code in the assignment dropbox set in Moodle. You are supposed to work with Linux gcc compiler and pico editor for compiling via the

Define the Recursion Function in C? In C, it is potential for the function to call themselves a function is describing 'recursive' if a statement within the body of a function