Search:

Type: Posts; User: spraypaul

Search: Search took 0.00 seconds.

  1. Thread: Array Help

    by spraypaul
    Replies
    5
    Views
    829

    int money[MAXNAME][MAXDEPT]; int numNames,...

    int money[MAXNAME][MAXDEPT];
    int numNames, numDept, i, j;
    char name[MAXLEN+1];
    char dept[MAXLEN+1];
    char exec[MAXLEN+1];


    scanf("%d", &numNames); //read number of...
  2. Thread: Array Help

    by spraypaul
    Replies
    5
    Views
    829

    int money[MAXNAME][MAXDEPT]; int numNames,...

    int money[MAXNAME][MAXDEPT]; int numNames, numDept, i, j;
    char name[MAXLEN+1];
    char dept[MAXLEN+1];






    scanf("%d", &numNames); //read number of executives
  3. Thread: Array Help

    by spraypaul
    Replies
    5
    Views
    829

    Array Help

    hey new to programming i know this code isnt anywhere near done but just seeing if someone could help with why it keeps crashing right away.




    #include<stdio.h>
    #include<string.h>
  4. Thread: Help

    by spraypaul
    Replies
    2
    Views
    983

    Help

    got a new assignment in class and seems a little confusing to me. I am new to programming and this is my first class in C so bare with me..


    Problem Statement

    After a successful career...
  5. Here is a code to see if a number is prime ...

    Here is a code to see if a number is prime


    #include <stdio.h>

    int main() {


    int N, a, b;
  6. No, We haven't done arrays and you are supposed...

    No, We haven't done arrays and you are supposed to enter a number of cases first




    int main() {


    int T, N, a, b, curCase;
    curCase = T >=1;
  7. Help!

    Help!
  8. write a program that takes in a series of...

    write a program that takes in a series of integers, N, and prints out all pairs of numbers (a,b), such that a times b equals N, such that a is less than or equal to b, and a is not equal to 1....
  9. Thats the confusion that I am having. I'm not...

    Thats the confusion that I am having. I'm not sure how to enter the equation to find the factors of n and where they should go. and also say i enter 4 for the case number how do i make sure that the...
  10. well the program is not supposed to ask for an...

    well the program is not supposed to ask for an input, just begins with an input of T = the number of cases, then the next line will be an integer N = the number that will be factorized. the next like...
  11. Thank you so like this? scanf("%d", &N); ...

    Thank you so like this?


    scanf("%d", &N);
    for(curCase = 1; curCase <=1 ; curCase++)
    {
    printf("Case %d: %d\n", curCase ,N);
    printf("(%d,%d\n)" , a, b);
  12. please any help is appreciated i am new and...

    please any help is appreciated i am new and finding this very difficult
  13. Hello new to to the forum and also to programmig.

    Hello my name is Kepal, this is my first post and I am taking my first programming class which is Intro to C. Long story short I am having trouble with loops and how to find the factors of a certain...
Results 1 to 13 of 14