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
Can the curly brackets { } be used to enclose a single line of code?
what are bit fields in c?
Write a code to remove duplicates in a string.
Explain the difference between call by value and call by reference in c language?
Explain how does free() know explain how much memory to release?
differentiate built-in functions and user – defined functions.
Explain how do you generate random numbers in c?
What are the advantages and disadvantages of a heap?
Can you pass an entire structure to functions?
What is #define size in c?
What is a static variable in c?
difference between Low, Middle, High Level languages in c ?
can we have joblib in a proc ?
List some of the static data structures in C?
What is the difference between malloc() and calloc()?