Searching...

Product of Even Numbers b/w 1 & 10

15:38

#include <iostream>
using namespace std;
int main()
{
int product=1;
for (int i=1;i<=10;i++)
{
if(i%2==0)
{
product=product*i;
}
}
cout << "The Product of Even Numbers Between 1 and 10 is = " << product <<endl;
return 0;
}

0 comments:

Post a Comment

Thanks For Your FeedBack....

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.