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

The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

1240


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

3191


Where we use clrscr in c?

1107


How can you check to see whether a symbol is defined?

1069


how can f be used for both float and double arguments in printf? Are not they different types?

1035


How many types of operators are there in c?

1005


What is the c language function prototype?

1057


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1939


What is main () in c language?

1098


What is the difference between far and near ?

1168


What is the -> in c?

970


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15760


What are the types of operators in c?

1030


Why main is not a keyword in c?

1205


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3476