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 / paru jain

#include<stdio.h>
void main()
{
for(i=1;i<=6;i++)
{
printf("%d",i);
}
printf("\n");
int value = 1;
for(int j=1;j<6;j++
{
value = value+2;
printf("%d",value);
}
printf("\n");
for(int k=2;k<6;k++)
{
int m = j*4;
printf("%d",m);
}
}

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use any name in place of argv and argc as command line arguments?

1017


find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }

2265


Do string constants represent numerical values?

1326


Why is void main used?

1037


Are enumerations really portable?

984


What 'lex' does?

1104


What are disadvantages of C language.

1103


What is the right type to use for boolean values in c? Is there a standard type?

971


How can I avoid the abort, retry, fail messages?

1086


What does %c mean in c?

1031


What is the maximum no. of arguments that can be given in a command line in C.?

1089


Can the sizeof operator be used to tell the size of an array passed to a function?

1061


Explain what is the difference between a string and an array?

1105


What is memcpy() function?

1051


What is the difference between int main and void main in c?

1097