write a c program to find the square of a 5 digit number
and print the result.
Answer Posted / balagopalan
#include<stdio.h>
int main()
{
long long int a = 99999;
long long int b = a * a;
printf("%lld" , b);
return 0;
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
What is p in text message?
Which of these functions is safer to use : fgets(), gets()? Why?
What is an endless loop?
What is the difference between fread and fwrite function?
What is linear search?
How can I determine whether a machines byte order is big-endian or little-endian?
Explain how does free() know explain how much memory to release?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Define VARIABLE?
What do you mean by scope of a variable in c?
What is meant by keywords in c?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
How can I generate floating-point random numbers?
What is the process to create increment and decrement stamen in c?