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 1f in c?

2664


What is c programming structure?

1204


What is the purpose of macro in C language?

1127


How many levels of pointers have?

1056


Differentiate between a structure and a union.

1292


Write a program in c to replace any vowel in a string with z?

1130


What is the use of getch ()?

1077


What's the difference between constant char *p and char * constant p?

1153


program for reversing a selected line word by word when multiple lines are given without using strrev

2482


What is hashing in c?

1165


Write a program to print “hello world” without using semicolon?

1123


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

1699


what are bit fields in c?

1722


i want to know the procedure of qualcomm for getting a job through offcampus

2471


Explain the difference between structs and unions in c?

1028