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

Answer Posted / naresh

#include<stdio.h>
int main(void)
{
int a=2,c;
for(c=1;c<=10;c++)
{
printf("%4d",a*c);
}
return 0;
}

Is This Answer Correct ?    12 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you relate the function with the structure? Explain with an appropriate example.

2909


Write a program to model an exploding firecracker in the xy plane using a particle system

3677


#include int main(void) { int a=4, b=2; a=b<>2 ; printf("%d",a); return 0; }

1060


create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00

6297


Design an implement of the inputs functions for event mode

2950






could you please send the program code for multiplying sparse matrix in c????

3060


write a program for area of circumference of shapes

2022


To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']

483


Cluster head selection in Wireless Sensor Network using C programming language.

3092


why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

2248


What is full form of PEPSI

1849


how to test pierrot divisor

2246


how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

3112


How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?

2006


Sir... please give some important coding questions asked by product companies..

1788