write an algorithmthat use a for loopto calculate and print the product of the integers from1 to 25 which are divisible by 5??
yar please samjhane ki koshish bhi karna...
write an algorithmthat use a for loopto calculate and print the product of the integers from1 to 25 which are divisible by 5??
yar please samjhane ki koshish bhi karna...
ma ishq-e-kainaat ma zanjeer ho saku
mujh ko hisar-e-zaat ke shar se rahai de
borther ksis zamaney main perhi thi any ways jitna yaad hai aap ko batat hoo try kartey hain ban jaye ga...
01 #include <cstdlib>
02 #include <iostream>
03 #include <stdio.h>
int main( void )
{
int count;
int product=1;
printf( "\nThe Divisible numbers 1-25 are\n\n");
for( count=1; count<=25; count++ ){
product =count/product;
printf("%d\n", count);
}
printf( "\nProduct is \n%d", product);
return 0;
}
ABHI JALDI MAI YEH BANA HAI ISS KO COMPILE KAREEN MAIN BAAD MAI AAP KO REPLY KAOO GA AABHI TORA BUSY HOON
Last edited by Derwaish; 5th November 2011 at 08:49 AM.
ایک طرف لمبی لمبی امیدیں
دوسری طرف کل نفس ذائقۃ الموت
for k bad 1 if condition aye gi
if (count%5==0)
{
product=product*count;
print count;
}
aur han product ko 1 say initialize krna ha
Dear Darwesh bhai!
Bhut acha code dia he lakin ye c language me he. c++ me thora different he. Anyway thanx
[URL="."][COLOR=Red][B][COLOR=Magenta]Read ITD Thread[/COLOR] | Cheap Shared hosting, [COLOR=Blue]Reseller Hosting[/COLOR], [COLOR=DarkGreen]Master Reseller[/COLOR], [COLOR=Sienna]Alpha Reseller Hosting & [COLOR=DarkSlateGray]Domains[/COLOR]
[/COLOR][/B][/COLOR][/URL]
thanks for sharing check karta hun
thori c changing kr k bn gaya thanks yaar
Bookmarks