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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Can the curly brackets { } be used to enclose a single line of code?

1152


what are bit fields in c?

1672


Write a code to remove duplicates in a string.

1012


Explain the difference between call by value and call by reference in c language?

1096


Explain how does free() know explain how much memory to release?

1056


differentiate built-in functions and user – defined functions.

1068


Explain how do you generate random numbers in c?

1068


What are the advantages and disadvantages of a heap?

1196


Can you pass an entire structure to functions?

1104


What is #define size in c?

1177


What is a static variable in c?

1093


difference between Low, Middle, High Level languages in c ?

2067


can we have joblib in a proc ?

2282


List some of the static data structures in C?

1181


What is the difference between malloc() and calloc()?

1804