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...
Type: Posts; User: spraypaul
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...
int money[MAXNAME][MAXDEPT]; int numNames, numDept, i, j;
char name[MAXLEN+1];
char dept[MAXLEN+1];
scanf("%d", &numNames); //read number of executives
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>
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...
Here is a code to see if a number is prime
#include <stdio.h>
int main() {
int N, a, b;
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;
Help!
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....
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...
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...
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);
please any help is appreciated i am new and finding this very difficult
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...