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
In a switch statement, explain what will happen if a break statement is omitted?
how can use subset in c program and give more example
What is meant by high-order and low-order bytes?
Is linux written in c?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
What do the functions atoi(), itoa() and gcvt() do?
Explain pointers in c programming?
What are qualifiers and modifiers c?
Place the #include statement must be written in the program?
Why do we use namespace feature?
Explain the difference between strcpy() and memcpy() function?
What is getch c?
When should the const modifier be used?
Can a pointer be static?
How pointers are declared?