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
What are the complete rules for header file searching?
What is the significance of c program algorithms?
What is enumerated data type in c?
What is context in c?
What does void main () mean?
what is the syallabus of computer science students in group- 1?
Is it better to use malloc() or calloc()?
What is character set?
What is infinite loop?
What Is The Difference Between Null And Void Pointer?
What is derived datatype in c?
Simplify the program segment if X = B then C ← true else C ← false
What is meant by int main ()?
Do pointers need to be initialized?
What is union and structure in c?