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

what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); }

3 Answers   Wipro,


main() { char p[ ]="%d\n"; p[1] = 'c'; printf(p,65); }

2 Answers  


write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30

0 Answers  


int i,j; for(i=0;i<=10;i++) { j+=5; assert(i<5); }

3 Answers   Cisco, HCL,


find simple interest & compund interest

2 Answers  






How to access command-line arguments?

4 Answers  


Write a prog to accept a given string in any order and flash error if any of the character is different. For example : If abc is the input then abc, bca, cba, cab bac are acceptable, but aac or bcd are unacceptable.

5 Answers   Amazon, Microsoft,


main() { char *p = "hello world"; p[0] = 'H'; printf("%s", p); } a. Runtime error. b. “Hello world” c. Compile error d. “hello world”

5 Answers   HCL,


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

0 Answers  


how can i cast a char type array to an int type array

2 Answers  


#include<stdio.h> main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }

1 Answers  


plz send me all data structure related programs

2 Answers  


Categories