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
Why c is called top down?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
What is storage class?
In C language what is a 'dangling pointer'?
Write a program to check whether a number is prime or not using c?
writ a program to compare using strcmp VIVA and viva with its output.
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
Write a program to swap two numbers without using third variable in c?
What is the argument of a function in c?
What is gets() function?
What is the use of putchar function?
Why is %d used in c?
What is the purpose of ftell?
Are local variables initialized to zero by default in c?
What is the scope of static variable in c?