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 an array? What the different types of arrays in c?
What is union and structure in c?
What is the significance of scope resolution operator?
What is volatile variable how do you declare it?
Is javascript written in c?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
What functions are used in dynamic memory allocation in c?
State two uses of pointers in C?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
What is the importance of c in your views?
Differentiate between new and malloc(), delete and free() ?
What are qualifiers and modifiers c?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
Apart from dennis ritchie who the other person who contributed in design of c language.
Why is #define used?