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
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
why do some people write if(0 == x) instead of if(x == 0)?
How can I dynamically allocate arrays?
What are the modifiers available in c programming language?
Are the expressions * ptr ++ and ++ * ptr same?
What is the role of && operator in a program code?
Can variables be declared anywhere in c?
Explain how do you generate random numbers in c?
For what purpose null pointer used?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
What is c definition?
How do you use a pointer to a function?
How is pointer initialized in c?
How can you find the day of the week given the date?