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
What is bss in c?
write a program to copy the string using switch case?
What does volatile do?
Explain the difference between structs and unions in c?
Explain what are multibyte characters?
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.
Why is c called c?
When should the const modifier be used?
write a proram to reverse the string using switch case?
What is the basic structure of c?
Write a program to print fibonacci series using recursion?
Add Two Numbers Without Using the Addition Operator
how many errors in c explain deply
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
Explain how can I pad a string to a known length?