Output for following program using for loop only
*
* *
* * *
* * * *
* * * * *
Answer Posted / sampath
for(i=0;i<=5;i++){
for(j=i;j<=i;j++)
printf("*");
printf("\n");
}
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is the use of void pointer and null pointer in c language?
How many levels of indirection in pointers can you have in a single declaration?
What are register variables in c?
Is using exit() the same as using return?
What do you mean by command line argument?
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
pierrot's divisor program using c or c++ code
Explain what are multibyte characters?
What are the different types of objects used in c?
write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
Describe wild pointers in c?
What is gets() function?
What is the difference between array and structure in c?
What is structure packing in c?