Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / narsi

#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 ?    12 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is strcpy() function?

1219


What will be your course of action for a push operation?

1156


Explain can the sizeof operator be used to tell the size of an array passed to a function?

1120


Why is c so popular?

1212


What are identifiers in c?

1243


any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

1106


What is the function of this pointer?

1461


What is the purpose of clrscr () printf () and getch ()?

1115


Can we use visual studio for c?

1162


List a few unconditional control statement in c.

1032


What is the size of empty structure in c?

1131


What is structure in c language?

1244


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1933


How can you invoke another program from within a C program?

1122


What is struct node in c?

1129