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


Please Help Members By Posting Answers For Below Questions

Apart from dennis ritchie who the other person who contributed in design of c language.

812


How can I get random integers in a certain range?

611


what are the advantages of a macro over a function?

647


What is the value of h?

591


What are the advantages of using new operator as compared to the function malloc ()?

758






Explain how do you view the path?

655


What are different types of pointers?

563


Can an array be an Ivalue?

666


What is %s and %d in c?

592


What are the similarities between c and c++?

599


List the different types of c tokens?

627


What are valid signatures for the Main function?

701


What is s in c?

616


What is the difference between array_name and &array_name?

776


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1448