Great question, I'd love to know as well. I'd like to go to school online with a focus on programming as well but haven't been able to find the right program. I've taken a C class recently and did...
Type: Posts; User: dolfaniss
Great question, I'd love to know as well. I'd like to go to school online with a focus on programming as well but haven't been able to find the right program. I've taken a C class recently and did...
OHHHH, you found it. I don't know if I posted the final product, don't remember but I'm sure it was close.
I did this assignment about 3 weeks ago, are you using problem solving and program design using C and are in in Chapter 6? If so reading the chapters really helps, LOL.
Anyway, I created two...
Thanks!
Hi Imalc, that is how I learned selection sort as well, sort in the inner loop. Would you mind explaining how to do the sort in the outer loop?
Sorry, I really wasn't trying to give advice but instead just joining the discussion and trying to learn the best way to do this. I wasn't clear about this in my post.
I continued researching...
This works great but I know it's not desiredable:
#include <stdio.h>
int main (void)
{
int num = 0;
int flag = 0;
OK I'm curious. I am guilty of using a scanf and fflush (stdin); which everyone tells me is not good. However this program can be fixed in about .2 seconds doing it that way.
I've been playing...
Try this
#include <stdio.h>
int bascara1(int x,int y, int z);
Got it:
#include <stdio.h>
int main(void)
{
int alphabet[26];
Thanks, no they are not B's but one 65 A then all garbage.
That I can't get. My instructor went over this last night and I'm trying to study up but apparently didn't save the program. Here is my code:
#include <stdio.h>
int main(void)
{
int...
Thanks a lot, that did it. I was already playing with *accup = *accup + num, the initialization fixed it.
I am writing a program that will act as a simple calculator when it is complete. The instructions state to use one function that returns 2 output parameters and another to do the calculations. I am...
I've been slowly working at it, the program I'm going to post runs and displays a pontential humble number and and prime number between 11 and the number. Now I need to test them one at a time,...
I'm in a class right now and have really done pretty well so far, if I say so myself, but am struggling with nested loops. It took me quite awhile to get a program that catches prime numbers to work...
Thanks Mike, I will play around and see what I can come up with.
I want to print the first 100 prime numbers. I am able to do the all of the non primes from 0 to 100 but cannot figure out how to get the primes. This is what I think I need to do.
Make a loop...
Not the first 100 prime.
I've been working at this for awile and I need some help. I can print the first 100 non-prime numbers but not the first 100. What am I missing? This nested loop business is killing me. Here is...
Thanks guys, I will keep it as is.
My next assignment was to take in a positive integer of up to 10 digits (that was the curveball) and display them vertically from right to left. It wasn’t bad, except for the 10 digit part. Seems...
Thanks, program is much cleaner now, it can even handle the 1 number case so the while loop was also taken out.
Nevermind I messed up, this:
lowest_num = 200000000;
highest_num = -20000000;
Has to go outside the loop.
Thanks a lot guys, that is the exact type of information I'm looking for. I'm finding I can get my homework problems done but also want to see if there are better ways to do things. I admit loops...