1
232
34543
4567654
can anyone tell me how to slove this c question
Answer Posted / anjali
#include <stdio.h>
int main ()
{
int k = 2;
int i, j,l;
for (i = 0; i < 5; i++)
{
for (j = i+1; j < k; j++)
{
printf("%d", j);
}
k = k + 2;
for (l = j - 2; l > i; l--)
{
printf("%d", l);
}
printf("\n");
}
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
How does normalization of huge pointer works?
Can the curly brackets { } be used to enclose a single line of code?
What is pass by reference in c?
What is #pragma statements?
What is void main ()?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
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 memcpy() function?
What is a rvalue?
What is the easiest sorting method to use?
What is the meaning of && in c?
difference between object file and executable file
What is a buffer in c?
Explain how can I remove the trailing spaces from a string?
What is the use of typedef in c?