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
What does %d do in c?
What are compound statements?
Is c weakly typed?
What is an example of structure?
Which is the memory area not included in C program? give the reason
How can you restore a redirected standard stream?
Explain what is meant by high-order and low-order bytes?
How can I recover the file name given an open stream?
Is it possible to initialize a variable at the time it was declared?
How can I open a file so that other programs can update it at the same time?
Is there a way to switch on strings?
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
What is pointer in c?
What is static function in c?
Is c a great language, or what?