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
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
Add Two Numbers Without Using the Addition Operator
What are formal parameters?
What is the meaning of typedef struct in c?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
Is fortran still used in 2018?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
Can a variable be both const and volatile?
List the difference between a While & Do While loops?
List out few of the applications that make use of Multilinked Structures?
Why doesnt this code work?
What is array in C
How can I implement a delay, or time a users response, with sub-second resolution?