write a c program to find the square of a 5 digit number
and print the result.

Answer Posted / ishany gaurav

#include<iostream.h>
#include<conio.h>
void main()
{
int i,k,j,l;
cout<<"lets find out the square of five digit no.";
cout<<"enter the five digit no." ;
cin>>i;
k=i*i;
cout<<"square of a no. is"<<k;
getch();
}

Is This Answer Correct ?    9 Yes 30 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are linked lists in c?

841


Can a pointer be volatile in c?

721


What is printf () in c?

773


How will you divide two numbers in a MACRO?

901


What is declaration and definition in c?

738


What is #include called?

787


Explain what is the stack?

831


When would you use a pointer to a function?

786


Lists the benefits of c programming language?

808


Why enum is used in c?

693


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

942


Find MAXIMUM of three distinct integers using a single C statement

812


What does c mean in standard form?

830


Explain what math functions are available for integers? For floating point?

838


What will the preprocessor do for a program?

763