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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bss in c?

1080


write a program to copy the string using switch case?

2879


What does volatile do?

974


Explain the difference between structs and unions in c?

997


Explain what are multibyte characters?

1167


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

1659


Why is c called c?

998


When should the const modifier be used?

1088


write a proram to reverse the string using switch case?

2917


What is the basic structure of c?

1061


Write a program to print fibonacci series using recursion?

1048


Add Two Numbers Without Using the Addition Operator

806


how many errors in c explain deply

2074


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1114


Explain how can I pad a string to a known length?

1179