write a c program that prints all multiples of 3between 1
and 50.
Answer Posted / 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 |
Post New Answer View All Answers
Explain how can I avoid the abort, retry, fail messages?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
Place the #include statement must be written in the program?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
What is the purpose of clrscr () printf () and getch ()?
What is atoi and atof in c?
Why void main is used in c?
how to capitalise first letter of each word in a given string?
What is the basic structure of c?
What are the types of bitwise operator?
What are static variables in c?
What is NULL pointer?
Can two or more operators such as and be combined in a single line of program code?
Which is best book for data structures in c?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?