Wap to print numbers from 1-50 which are divided by 7, C/C++ Programming

WAP TO PRINT NUMBERS FROM 1-50 WHICH ARE DIVIDED BY 7

void main ()

{

int a;

clrscr ();

a=1;

while (a<=50)

{

if (a%7==0)

printf ("%d\n",a);

a++;

}

getch ();

}

 

Posted Date: 9/10/2012 9:10:57 AM | Location : United States







Related Discussions:- Wap to print numbers from 1-50 which are divided by 7, Assignment Help, Ask Question on Wap to print numbers from 1-50 which are divided by 7, Get Answer, Expert's Help, Wap to print numbers from 1-50 which are divided by 7 Discussions

Write discussion on Wap to print numbers from 1-50 which are divided by 7
Your posts are moderated
Related Questions

Private derivation If no specific derivation is listed, then a private derivation is supposed. If a new class is derived privately from its parent class, then: The priva

Each of the following two procedures defines a method for adding two positive integers in terms of the procedures inc, which increments its argument by 1, and dec, which decrements

get coding for padovan string

write an algorithm that reads a postive integer n and then finds and prints the sum of all integers between 1 and n (inclusive) that are disvisible by 7. please write this using c


A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concatenation. For a string of t

A company needs 200 pencils per year . you cannot simply use this price as the cost of pencils two years from now. Because of inflation the cost is likely to be higher than it is

Classify computer system according to capacity. How they are different from computers according to the classification of technology. Provide comparative study also.

Debug the following program to calculate N! #include using namespace std; main() {             int N, factorial=1;             cout             cin >> N;