yup2.. still got the same answer.. is there anything wrong?
Type: Posts; User: naspek
yup2.. still got the same answer.. is there anything wrong?
compiled it already..
and the result is.. Little endian
to be sure that the program working well,
i substitute Little with Big and vice versa..
#include <stdio.h>
int main()
hey there..
my lecturer gave me the source code and ask me to give comment for each line..
#include <stdio.h> //standard I/O header file to declare printf, scanf n other things
int main()...
got it guys!!
thanks for guiding me!! =)
here is my new and correct code...
#include <stdio.h>
int main () {
int x, y, i;
hey there.. i'm having a hard time to get output like below...
0
.1
..2
...3
....4
.....5
......6
.......7
hey there..
this is my code...
#define SIZE 100
#include<stdio.h>
float mean_function(float[],int);
float median_function(float[],int);
float mode_function(float[],int);
int main()
ok.. in main function, i just need to print the output of
Status: ELIGIBLE or..
Status: NOT ELIGIBLE
my idea is to declare all my works for status in function definition..
and in the main...
what i'm trying to do is, i want to store E = ELIGIBLE and N = NOT ELIGIBLE.
then.. i want to call them by referrence in main function..
char *statusPtr;
loan_calculate(L, DP, Y, S,...
ok.. this is the code that i've makes some corrections..
#include <stdio.h>
void loan_calculate (float L, float DP, int Y, float S, float *monthlyPtr, char *statusPtr, float I);
int main ()
{...
loan_calculate (L, DP Y, S, &monthlyPtr, &status);
ok.. i've made corrections d...
void loan_calculate (float L, float DP, int Y, float S, float *monthlyPtr, char *statusPtr){
*monthlyPtr = ((L-DP) + ((L-DP) * (I/100) * Y)) / (12 * Y);
...
ok.. so simple one first..
how am i going to correct this "status == ELIGIBLE "?
is it... status == [ELIGIBLE]?
hey there...
need ur guys help to highlight my mistakes..
i'm suppose to get the output below...
LOAN ADVISOR
Car purchase price/loan <RM>: 15000
Down payment <RM>:0
Payment period <in...
ok.. thanks tabstop! =)
what do u mean by "seed"?
y must include "unsigned" inside srand()?
what is the use of srand(unsigned) in a program to generate random numbers?
what is the differences between srand(unsigned) and srand()?
got it!! thanks spidey!!
i'd try to insert while repetition structure...
but, it cant be stop.. and "PRESS ANY KEY TO CONTINUE" isnt functioning..
#include<stdio.h>
#include <stdlib.h>
#include <time.h>
int...
hey there...
i need to create a random numbers generator..
i solve the code already..
but.. how am i going to have my program keep on running..
for example:
"PRESS ANY KEY TO CONTINUE"
(then.....
i've try for so many times... but still cant get it..
guys.. i got stuck again..
hurmm..~
printf("Enter a number between 1 to 20 (1-20): ");
scanf("%d", &x);
for ( i = x; i <= x + 3; i++ ) {
printf("\t%d", i);
ok.. i'll try it first... until i dont know wut should i do..
thanks guys.. =)
ok.! understand now..
thank u very much!!!
for ( i = x; i <= x + 3; i++ ) {
printf("\t%d", i);
for ( j = 2; j <= 5; j++ ){
printf("\t%d", i*j);
}
...
ok.. i try print it.. but.. the vertical line does not change..
my loop is now correct aite?
just the printf part is wrong aite?
for ( i = x; i <= x + 3; i++ ) {
printf("\t%d", x);
...
for ur question: i thought i can get my multiplication table.. but, i'm wrong..
ok.. i'd change my for loop..
but the output kinda weird..
for ( i = x; i <= x + 3; i++ ) {
for ( j =...