Write a program that his output * *** *****
Answer / srujitha
int main()
{
int n = 5;
for( int i = 0; i <= n; i = i + 2)
{
for( int j = 0; j<=i;j++)
{
printf("*");
}
printf(" ");
}
Is This Answer Correct ? | 3 Yes | 0 No |
How main function is called in c?
How would you write qsort?
I have an array of 100 elements. Each element contains some text. i want to: append a star character to the end of every fifth element remove every second character from every tenth element, and… add a line feed (ascii 10) after the 30th character of every array element whose length is greater than 30 characters.
What is %lu in c?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value
Program to find larger of the two numbers without using if-else,while,for,switch
what is data structure?
What is use of integral promotions in c?
write a c/c++ program that takes a 5 digit number and calculates 2 power that number and prints it?
How to print India by nested loop? I IN IND INDI INDIA
Explain what is meant by 'bit masking'?