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...


How we print the table of 3 using for loop in c
programing?

Answers were Sorted based on User's Feedback



How we print the table of 3 using for loop in c programing?..

Answer / chitra

int i,no;
for(i=1;i<=10;i++)
{
no=i*3;
printf("%d",no);
}

Is This Answer Correct ?    22 Yes 5 No

How we print the table of 3 using for loop in c programing?..

Answer / teja

for(i=1;i<=10&&printf("3*%d=%d",i,3*i);i++);

Is This Answer Correct ?    11 Yes 1 No

How we print the table of 3 using for loop in c programing?..

Answer / tevendra singh pardhi

#include<stdio.h>
main()
{
int i,ans;
for(i=1;i<=10;i++)
{
ans=3*i;
printf("%d",&ans) ;
}
return 0;
}

Is This Answer Correct ?    5 Yes 0 No

How we print the table of 3 using for loop in c programing?..

Answer / sanjay kr marandi

#include<stdio.h>
main()
{
int n,i,t=1;

printf("/nEnter a table:");
scanf("%d",&n);
for(i=1;i<=10;i++)
{
t=n*i;
printf("%dX%d=%d\n",n,i,t);
}

Is This Answer Correct ?    1 Yes 0 No

How we print the table of 3 using for loop in c programing?..

Answer / k.anuroop

#include<stdio.h>
main()
{
int a,i;
i=0;
for(i=0;i<21;i++)
{
a=3*i;
printf("\n3*%d=%d",i,a);
}
}

Is This Answer Correct ?    1 Yes 0 No

How we print the table of 3 using for loop in c programing?..

Answer / salu

\\its work for any table u want :)\\

#include<stdio.h>
#include<conio.h>

int main ()
{


int i=0;
int j=0;
int k=1;
int no=0;
printf("ENTER table no :");
scanf("%d",&i);
printf("ENTER lenght:");
scanf("%d",&j);

for (k=1;k<=j;k++)
{no=k*i;

printf("%d*%d=%d\n",i,j,no);
}
getch();
}

Is This Answer Correct ?    2 Yes 1 No

How we print the table of 3 using for loop in c programing?..

Answer / chitra

int i;
for(i=1;i<=10;i++)
{
i=i*3;
printf("%d",i);
}

Is This Answer Correct ?    11 Yes 20 No

Post New Answer

More C Code Interview Questions

#include<stdio.h> int main() { int a=3,post,pre; post= a++ * a++ * a++; a=3; pre= ++a * ++a * ++a; printf("post=%d pre=%d",post,pre); return 0; }

3 Answers  


pls anyone can help me to write a code to print the values in words for any value.Example:1034 to print as "one thousand and thirty four only"

2 Answers  


main(){ unsigned int i; for(i=1;i>-2;i--) printf("c aptitude"); }

2 Answers  


Sorting entire link list using selection sort and insertion sort and calculating their time complexity

1 Answers   Infosys, Microsoft, NetApp,


main(){ char a[100]; a[0]='a';a[1]]='b';a[2]='c';a[4]='d'; abc(a); } abc(char a[]){ a++; printf("%c",*a); a++; printf("%c",*a); }

2 Answers  


can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail

0 Answers   TCS,


main( ) { void *vp; char ch = ‘g’, *cp = “goofy”; int j = 20; vp = &ch; printf(“%c”, *(char *)vp); vp = &j; printf(“%d”,*(int *)vp); vp = cp; printf(“%s”,(char *)vp + 3); }

1 Answers  


void main() { int *mptr, *cptr; mptr = (int*)malloc(sizeof(int)); printf(“%d”,*mptr); int *cptr = (int*)calloc(sizeof(int),1); printf(“%d”,*cptr); }

1 Answers  


What are the files which are automatically opened when a C file is executed?

1 Answers  


what is brs test reply me email me kashifabbas514@gmail.com

0 Answers  


main() { unsigned char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

1 Answers  


can u give me the c codings for converting a string into the hexa decimal form......

1 Answers  


Categories