write a c program that prints all multiples of 3between 1
and 50.
Answer Posted / yamuna
/*A.Yamuna III BSc CS L.R.G. COLLEGE,TIRUPUR*/
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
printf("The multiples of 3 between 1 and 50 are :");
for(a=1;a<=50;a++)
{
if(a%3==0)
{
printf("\n%d",a);
}
}
getch();
}
| Is This Answer Correct ? | 47 Yes | 6 No |
Post New Answer View All Answers
What are the advantages of using macro in c language?
Is c easy to learn?
What are c preprocessors?
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)
What does it mean when the linker says that _end is undefined?
What are the different properties of variable number of arguments?
What do you mean by c what are the main characteristics of c language?
Give differences between - new and malloc() , delete and free() ?
How does free() know explain how much memory to release?
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
What are different storage class specifiers in c?
What are the advantages of using new operator as compared to the function malloc ()?
What does void main return?
What are register variables? What are the advantage of using register variables?