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


Please Help Members By Posting Answers For Below Questions

What are the complete rules for header file searching?

665


What is the significance of c program algorithms?

676


What is enumerated data type in c?

617


What is context in c?

536


What does void main () mean?

729






what is the syallabus of computer science students in group- 1?

1835


Is it better to use malloc() or calloc()?

645


What is character set?

681


What is infinite loop?

624


What Is The Difference Between Null And Void Pointer?

636


What is derived datatype in c?

627


Simplify the program segment if X = B then C ← true else C ← false

2578


What is meant by int main ()?

714


Do pointers need to be initialized?

556


What is union and structure in c?

607