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 1f in c?
What is c programming structure?
What is the purpose of macro in C language?
How many levels of pointers have?
Differentiate between a structure and a union.
Write a program in c to replace any vowel in a string with z?
What is the use of getch ()?
What's the difference between constant char *p and char * constant p?
program for reversing a selected line word by word when multiple lines are given without using strrev
What is hashing in c?
Write a program to print “hello world” without using semicolon?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
what are bit fields in c?
i want to know the procedure of qualcomm for getting a job through offcampus
Explain the difference between structs and unions in c?