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
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
Where we use clrscr in c?
How can you check to see whether a symbol is defined?
how can f be used for both float and double arguments in printf? Are not they different types?
How many types of operators are there in c?
What is the c language function prototype?
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
What is main () in c language?
What is the difference between far and near ?
What is the -> in c?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
What are the types of operators in c?
Why main is not a keyword in c?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?