print out put like this form
1 2 3 4 5 6
3 5 7 9 11
8 12 16 20

Answer Posted / r@m$

#include<stdio.h>
void main(){
int x=0,y=0;
while(y<20){
for(x=0;x<6;x++){
y++;
printf("%d\t",y);
}
y-=5;
for(x=0;x<5;x++){
y+=2;
printf("%d\t",y);
}
y-=7;
for(x=0;x<4;x++){
y+=4;
printf("%d\t",y);
}
}
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the return type of sizeof?

803


Is c procedural or functional?

771


How many types of errors are there in c language? Explain

749


Once I have used freopen, how can I get the original stdout (or stdin) back?

819


Can you write the algorithm for Queue?

1739


How can I manipulate individual bits?

784


What does 3 periods mean in texting?

798


What are the difference between a free-standing and a hosted environment?

996


Explain how do you print only part of a string?

914


c program for searching a student details among 10 student details

1862


How are Structure passing and returning implemented by the complier?

912


How to draw the flowchart for structure programs?

8958


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

1981


The file stdio.h, what does it contain?

872


Write a code to remove duplicates in a string.

817