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

Answer Posted / sreenu

#include<stdio.h>
#include<conio.h>
void main()
{
long i,j
clrscr();
printf("enter the number");
scanf("%ld",&i);
j=i*i;
printf("the sqare of the number is %d",j);
getch();
}

Is This Answer Correct ?    30 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to use switch statement.

662


What are runtime error?

633


What are the 5 types of organizational structures?

554


What is C language ?

1533


Why doesnt that code work?

604






code for quick sort?

1625


What is string function c?

572


What is the advantage of c?

613


What is string concatenation in c?

570


If errno contains a nonzero number, is there an error?

809


What is the use of parallelize in spark?

580


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

1788


What is oops c?

616


What is "Duff's Device"?

703


What is the purpose of 'register' keyword in c language?

631