Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is an array? What the different types of arrays in c?

1109


What is union and structure in c?

1154


What is the significance of scope resolution operator?

1350


What is volatile variable how do you declare it?

1029


Is javascript written in c?

1017


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

1473


What functions are used in dynamic memory allocation in c?

1022


State two uses of pointers in C?

1011


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

1032


What is the importance of c in your views?

1098


Differentiate between new and malloc(), delete and free() ?

1136


What are qualifiers and modifiers c?

944


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

1005


Apart from dennis ritchie who the other person who contributed in design of c language.

1323


Why is #define used?

1232