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
Is multithreading possible in c?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
When should a type cast not be used?
What is %g in c?
Explain 'far' and 'near' pointers in c.
What is a stream water?
What are the features of the c language?
Is main is a keyword in c?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
please give me some tips for the placement in the TCS.
Is c pass by value or reference?
Explain the difference between structs and unions in c?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What is a sequential access file?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA