write a c program that prints all multiples of 3between 1
and 50.

Answer Posted / pruthiewraj swain

#include<stdio.h>
#include <conio.h>
voidmain()
{
int a ;
printf("enter the multiples of 3");
while (a=100)
{
if (a%3==0|| a%4==0)
}
printf("
%d",a);
}}
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a dynamic array in c?

861


Do array subscripts always start with zero?

1050


What is the use of function in c?

967


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

975


What is scope and lifetime of a variable in c?

814


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1489


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

1957


Are the variables argc and argv are local to main?

1039


Why malloc is faster than calloc?

842


find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }

2097


Is register a keyword in c?

855


Explain how can you check to see whether a symbol is defined?

905


What is a memory leak? How to avoid it?

932


What is the scope of static variable in c?

757


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

854