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


write a c program that prints all multiples of 3between 1
and 50.

Answers were Sorted based on User's Feedback



write a c program that prints all multiples of 3between 1 and 50...

Answer / yamuna

/*A.Yamuna III BSc CS L.R.G. COLLEGE,TIRUPUR*/
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
printf("The multiples of 3 between 1 and 50 are :");
for(a=1;a<=50;a++)
{
if(a%3==0)
{
printf("\n%d",a);
}
}
getch();
}

Is This Answer Correct ?    47 Yes 6 No

write a c program that prints all multiples of 3between 1 and 50...

Answer / dj

#include<stdio.h>
#include<conio.h>
Void main()
{
int i;
for(i=1;i<=50;i++)
{
if(i%3==0)
{
printf("%d",i);
}
}
grtch();
}

Is This Answer Correct ?    24 Yes 13 No

write a c program that prints all multiples of 3between 1 and 50...

Answer / narsi

#include<stdio.h>
#include<conio.h>
void main()
{
int n1,n2;
n1=1;
n2=50;
while(n1<=n2)
{
if(n1%3==0)
printf("%d ",n1);
n1=n1+1;
}
}

Is This Answer Correct ?    12 Yes 4 No

write a c program that prints all multiples of 3between 1 and 50...

Answer / pruthiewraj swain

#include<stdio.h>
#include <conio.h>
voidmain()
{
int a ;
printf("enter the multiples of 3");
while (a=100)
{
if (a%3==0|| a%4==0)
}
printf("
%d",a);
}}
getch();
}

Is This Answer Correct ?    0 Yes 0 No

write a c program that prints all multiples of 3between 1 and 50...

Answer / hemanth

#include<stdio.h>
#include<conio.h>
void main()
{
int n1,n2;
n1=1;
n2=50;
while(n1<=n2)
{
if(n1%3==0)
printf("%d ",n1);
n1=n1+1;
}
}

Is This Answer Correct ?    5 Yes 6 No

Post New Answer

More C Interview Questions

How do we declare variables in c?

0 Answers  


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.

0 Answers  


What are the advantages and disadvantages of c language?

0 Answers  


Program to find larger of the two numbers without using if-else,while,for,switch

11 Answers   iNautix, Wipro,


Do you know what are the properties of union in c?

0 Answers  


Is main is user defined function?

0 Answers  


What is the use of bitwise operator?

0 Answers  


Is it possible to run a c program without using main?If yes HOW??

13 Answers   Wipro,


how to construct a simulator keeping the logical boolean gates in c

0 Answers  


Explain bitwise shift operators?

0 Answers  


write a program wch produces its own source code aas its output?

1 Answers   IonIdea,


hi, which software companys will take,if d candidate's % is jst 55%?

0 Answers  


Categories