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 restrict keyword in c?
Where are some collections of useful code fragments and examples?
Do variables need to be initialized?
What is a pragma?
Find MAXIMUM of three distinct integers using a single C statement
What do you mean by command line argument?
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
What are c identifiers?
How do you override a defined macro?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
The file stdio.h, what does it contain?
what do you mean by enumeration constant?
Explain what is the heap?
Is Exception handling possible in c language?