what is the code for getting the output as
*
**
***
Answer Posted / gg
#include<stdio.h>
main()
{
int n,i=0,j=0;
printf("Enter an intger : ");//upto n nof *'s
scanf("%d",&n);
while(j<n)
{
for(i=0;i<=j;printf("*"),i++);
printf("\n",j++);
}
}
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is output redirection?
Where are local variables stored in c?
Can we use visual studio for c?
What are the loops in c?
What are the disadvantages of c language?
given post order,in order construct the corresponding binary tree
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.
How many loops are there in c?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
What is the heap in c?
What is NULL pointer?
What extern c means?
What is %d used for?
Define and explain about ! Operator?
How many keywords (reserve words) are in c?