print out put like this form
1 2 3 4 5 6
3 5 7 9 11
8 12 16 20
Answer Posted / paru jain
#include<stdio.h>
void main()
{
for(i=1;i<=6;i++)
{
printf("%d",i);
}
printf("\n");
int value = 1;
for(int j=1;j<6;j++
{
value = value+2;
printf("%d",value);
}
printf("\n");
for(int k=2;k<6;k++)
{
int m = j*4;
printf("%d",m);
}
}
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Can we use any name in place of argv and argc as command line arguments?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
Do string constants represent numerical values?
Why is void main used?
Are enumerations really portable?
What 'lex' does?
What are disadvantages of C language.
What is the right type to use for boolean values in c? Is there a standard type?
How can I avoid the abort, retry, fail messages?
What does %c mean in c?
What is the maximum no. of arguments that can be given in a command line in C.?
Can the sizeof operator be used to tell the size of an array passed to a function?
Explain what is the difference between a string and an array?
What is memcpy() function?
What is the difference between int main and void main in c?