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
What is the return type of sizeof?
Is c procedural or functional?
How many types of errors are there in c language? Explain
Once I have used freopen, how can I get the original stdout (or stdin) back?
Can you write the algorithm for Queue?
How can I manipulate individual bits?
What does 3 periods mean in texting?
What are the difference between a free-standing and a hosted environment?
Explain how do you print only part of a string?
c program for searching a student details among 10 student details
How are Structure passing and returning implemented by the complier?
How to draw the flowchart for structure programs?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
The file stdio.h, what does it contain?
Write a code to remove duplicates in a string.