Added: 3 years ago
From: thenewboston
Views: 70,569
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (77)

Sign In or Sign Up now to post a comment!
  • How About NESTED LOOPS?

  • What if you want 30 lines to appear? (note : lines, not the actual value) What funciton do you use?

  • @tadm123 you need a loop

  • How can i program it so the user is the one who enters the increment he wants?

  • hey buck well so im new to this stuff, have you made any videos involving 'harder' combination problems? by combination i mean like all of the past videos combined like switch-looping or something.

  • OR

    counter++; does the same thing but shorter

  • @MrVidposter101 He did say counter++. Though counter++ only adds 1

  • the people that disliked this clearly have no f**king idea what hes talking about but other than that HOW COULD YOU NOT LIKE THESE THINGS HE IS TEACHING YOU I MEAN REALLY COMEEEE ONNNNN!!!!!!

  • Hey Bucky this is totally unrelated to the matter at hands but which do you prefer macs or pc?

  • thanks. thanks.thanks.thanks.thanks.th­anks.thanks.thanks.thanks.than­ks.thanks.thanks.thanks.thanks­.thanks.thanks.thanks.thanks.t­hanks.thanks.thanks.thanks.tha­nks.

  • He still has wooping cough, poor guy.

  • Comment removed

  • *N numbers

  • Here's a simple exercise:

    Write a program that allows the user to enter N number then calculate the

    arithmetic mean.

    PS: pm for code

  • Woops, I replied before watching the video.

  • @0121ryanh117

    Or to increment by 1, use

    'variable++'

  • Thanks a lot!!! Its realy helpfully.

  • And can i don`t use 3 arguments?

  • i want to make a program on which the user enters the number with which the counter starts and ends. i have done the printf and scanf functions (like ''type the first number:",''type the second number:'',scanf("%d", number1),("%d", number2).

    thanks in advance. please post additional instructions.

  • for(counter = 1;counter < 99999999;counter++){ 

  • Thanx a lot ! Love you ,man !

  • thnx :D

  • what softwre did u use ?? please reply .. I would like to use the same program instead of using the blue screen... thanks.. hope to get a reply.. :)

  • @alexpunisher143 he used dev C++

  • @alexpunisher143

    He was using Dev C++ here.. but I would recommend Code::Blocks instead because Dev C++ uses old/outdated compilers that do not follow current standards.

  • hes using dev c++ ..its good but not the best... the "blue screen" wat u referred to is turbo c.. its quite good... but a bit erratic sumtyms.. id suggest u use turbo c++ compiler.. its damn good

  • CS50.net

  • thanks a lot..i need some help from you. can you explain to me what this code dose? void main() { int i,j; printf("\1\n"); for ( i = 1; i <= 10; i++ ) { for ( j = 1; j <= i; j++ ) printf("%c%c",97,97); printf("\n"); } } ..why every time it has new line, there is another 2 extra a's from previous line?

  • thanks a lot..i need some help from you. can you explain to me what this code dose? void main() { int i,j; printf("\1\n"); for ( i = 1; i <= 10; i++ ) { for ( j = 1; j <= i; j++ ) printf("%c%c",97,97); printf("\n"); } } ..why every time it has new line, there is another 2 extra a's from previous line?

  • i also got a problem that my program didnot execute

    it give error code that is stdio.h file don`t find pls help me

    i

  • hi

    i wanna ask u something..

    how we make a program that give the factorial of the given number

  • Hey, why is it that in C++ we can do for(int i = 0; i < 10; ++i) and int C we cant? We have to do int i; then do our for loop.

  • I suspect your name is Greg but not Bucky... B)

    Am I right? lol

    I love them both :)

  • it is great

  • bucky for life!

  • ty for teaching i got it a little now

  • great tutorials even though i take a C course u teach better than that other lame teacher i got lol 5/5!!!

  • Bucky, you're great at doing these tutorials keep it up.

  • Great tutorials, it's very easy to follow

  • Bucky, youre amazing. In lecture my prof took about 6 hours to do loops, and you managed to make it easier in just over 6 minutes. Big help. Keep it up!

  • Thanks Bucky, I had problems learning about for loops from my professor and you cleared it up for me!

  • is there other syntax in the counter++?? how bout i want it to increment by 2.?

  • I was thinking about just that a while ago....I think the "++" operator is only used when you need to increment by 1. for incrementing by 2, you would need to use counter+=2, or counter=counter+1.

  • @shoofeer1 Correct. ;)

  • mybe then u have to use like skip 2 or something

    i dont know exactly

  • int counter = 0

    should make it 0 3 6 9 instead of 1 4 7

    I get it ... these videos really help a lot.

  • Thank you

    God bless you

  • it will be nicenot to put  20 but 100000000000000000000000000

    LOL XD

  • im usually a lazy as.s but dam today im learning and acutally getting it all

  • bucky..!!!

    you're a big help!!

    thanks.... :)

  • @luileth he is a huge help i agree

  • thanks BUcky. awesome.

  • Buckey can you do a tutorial on nested while loops?

  • i run the above code exactly the way he said and i get 2293572

    it doesnt make sense i have no idea why can someone help me please??

  • it has something to do with the

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

    part!

  • and how can i solve it?

  • just try it again, and if it's still wrong, leave it as it is. maybe next time at a different program, you'll make it. just don't panic if you don't understand sg. you can learn it later, don't need to rush...

  • Which compiler is he using. I am now using turbo c and i want to install also this can i use both without any fluctuations?

  • He is using DevC++, if Im not mistaken. You can Google it.

  • hi..what should I type inside the "scanf" if i want the user to enter the letter instead of number. for example..

    printf("Do you want to repeat the process,y/n ?");

    scanf();

    thankyou.

  • scanf("%c",&character);

  • how about usng "%c", in loop can you do that

  • no you cant do that

    %d is a place hold that will be replaced with the value of the integer (counter)

    if you use %c the character value is expected which is not a number

  • also i noticed that it is uneccessary to declare a value for counter other than in the for statement.

  • why is it necessary to put counter =1; in the for statement before counter <20? It seems to me counter < 20 should take care of that. I tried to exclude counter = 1 and errors.

  • for needs three arguments

  • but you have infinite negative numbers it would be crazy to no specified. i tried to exclude it too but it dint work.

  • I didn't know that. counter is easier lol

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more