yeah. the scanf works right i checked it. tje while loop assigns the elements arrays. but the for loop that is suppose to give me the summation doesnt work. since i say sum=1 it gives me 1 when i...
Type: Posts; User: jorgejags
yeah. the scanf works right i checked it. tje while loop assigns the elements arrays. but the for loop that is suppose to give me the summation doesnt work. since i say sum=1 it gives me 1 when i...
can someone tell me what am i doing wrong with for loop. its not returning what its suppose to. everything else works except for that.
#include <stdio.h>
int min();
int max();
main()
thanks.
yeah those are the index of the array.
how do you take data from a file and inputted into an array if the data in the file were to look like this
1 1 1
2 1 1
3 1 1
4 1 1
5 1 1...
nevermind i figured it out
ok i am trying to write a program that does a Caesar shift. i am doing the numbers first for example if i have 1456 and i shift every number by 3 i'll get 4789.
so what i got so far is this. So...
it says,
Write a program to identify the number of bits allocated for a variable of data type “short int”. You are told that computing system employs 2’s complement notation for storing negative...
that made it work. but how do i make it work without adding -lm nevermind i got it thanks.
is this what you wanted. i'm a new at this so dont much.
jgnlez@shellfish:~/ece175> od -t x1 num-digits.c | head > numbytes.dump
jgnlez@shellfish:~/ece175> cat numbytes.dump
0000000 23 69 6e...
yeah it works on windows but it doesnt want to compile on unix. hmm i wonder what it is
it just doesnt compile. it gives me this when i try to compile it. i am using unix
> gcc num-digits.c
Undefined first referenced
symbol in file...
#include <stdio.h>
#include <math.h>
int main()
{
int x, a, b, c, d;
printf("Please enter a number>");
scanf("%d", &x);
well i would like to the learn how to do the short way but at the time i cant think of how to do it. anyone have a clue?
i need to write a program that takes an integer from -99 to +99 as input and outputs the number in words. If the input is outside this range, the program should print that it is outside the range. ...
alright thanks. i got how to do it
how exactly would it start though?
anyone knows how they would start this off?
I need a which will take a decimal positive integer x then the program prints the number of digits required to represent the decimal integer x in...
ok
its for a programming C class not sure how to do this so whoever can lend a hand i'll appreciate it. here is the assignment.
Write a program that takes a real number as input and prints...