Total members 11895 |It is currently Sun Dec 22, 2024 9:41 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





Please guys i need ur help wiz that .... am kinda a beginner in c++ .. :)

and i need to write that program with JUST " ONE " FOR LOOP that outputs these sequence of numbers

" 6 8 11 15 16 21 22 26 29 31 "

any help would be really appreciated .. :) !! :gOOd:




Author:
Newbie
User avatar Posts: 2
Have thanks: 0 time

I think u can write for loop for your logic like this
Code:
for(int i=5;i<=31;i+2)
{
printf("%d",i);
i++;



Author:
Newbie
User avatar Posts: 1
Have thanks: 0 time

sureshbabu,

Your code would return the following sequence: 5 8 11 14 17 20 23 26 29. It is essentially
Code:
for(int i=5; i<=31; i+3)
{...}


I wish I could figure out the sequence for you. Sorry.


Author:
Newbie
User avatar Posts: 2
Have thanks: 0 time

:blush: thanks fellows for ur help , !! but i really need some professional's help here :S :( ....

would i find some!


Author:
Newbie
User avatar Posts: 2
Have thanks: 0 time

think a number for exaple a gcd between those numbers and think how you gonna make the div with it so you get that numbers this is one way.just a thought ...make an effort


Author:
Moderator
User avatar Posts: 47
Have thanks: 1 time
Post new topic Reply to topic  [ 5 posts ] 

  Related Posts  to : I NEED SOME HELP IN THE FOR LOOP PLZ .. IAM JUST A BEGINNER
 Beginner help on includes     -  
 Hi im a beginner in java im facing problem please help me     -  
 Beginner needs help- simple 'mail_to' contact form in PHP     -  
 do while loop and for loop C++ example help.     -  
 While loop     -  
 C++ While loop     -  
 Do while loop     -  
 Using include() Within a Loop     -  
 PIC Assembly For Loop Example     -  
 Breaking a Loop     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com