progrem to generate the following series
1
12
123
1234
12345

Answer Posted / shakil ahmed

#include<stdio.h>
#include<conio.h>
main()
{
int i, j;
for(i=1; i<=5; i++)
{
for(j=1; j<=i; j++)
{
printf("%d",j);
}
printf("\n");
}
}

Is This Answer Correct ?    65 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is pointer initialized in c?

581


how to make a scientific calculater ?

1561


What do you mean by keywords in c?

621


What does void main () mean?

729


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

725






Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

669


What is the difference between exit() and _exit() function?

598


Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.

4835


What is C language ?

1524


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

2449


What does 3 mean in texting?

608


Why isnt any of this standardized in c?

629


Explain union. What are its advantages?

613


A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

620


Is array a primitive data type in c?

573