write a program whose output will be-
1
12
123
1234
Answer Posted / devi
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
for(i=1;i<=4;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 51 Yes | 15 No |
Post New Answer View All Answers
What is floating point constants?
Tell us two differences between new () and malloc ()?
What are the features of c languages?
What are the storage classes in C?
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
Explain what does the function toupper() do?
What is structure in c definition?
What is #include stdio h and #include conio h?
Explain how can I pad a string to a known length?
What does static variable mean in c?
What are reserved words?
What are pointers? What are stacks and queues?
What is echo in c programming?
what value is returned to operating system after program execution?