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
What is the symbol indicated the c-preprocessor?
What are the advantages of using macro in c language?
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
Explain what is page thrashing?
Why c is procedure oriented?
What is zero based addressing?
What is a ternary operator in c?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
What are the advantages of using Unions?
What will be the outcome of the following conditional statement if the value of variable s is 10?
Explain how many levels deep can include files be nested?
i want to know the procedure of qualcomm for getting a job through offcampus
When can you use a pointer with a function?
What is a void pointer? When is a void pointer used?