Here is some things I need for the program to do and this is in C by the way
first line: integer, right justified in a 10 character field hex representation of that integer
second line: floating point, right justified in a 10 character field, with 2 digits to the right of the decimal point hex representation of that floating number
well my program crashes when I run it like when the program prompts to enter a number and I press enter it crashes so what am I doing wrong?
so I keep getting an output of 2685984 as my output but its shooting that number out regardless of what number I do put. I can put any number in there and it still displays the same number.. what am I doing wrong? maybe I just gotta step away from programming and get back to this tommorrow.
#include <stdio.h>
#include <stdlib.h>
int main() {
unsignedint number[200];
printf("Please enter one value for each type of the following,char,int,");
printf("char, float\n");
printf("\n");
printf("Please enter your int value now\n");
scanf("%u",number);
printf("Your int value is:%u\n",number);
printf("\n");
printf("Please enter integer value\n");
system("pause");
return 0;
}
Er, so far you have only posted problems getting numbers, and you have only used decimal format specifiers. I assumed you have gotten far enough along the documentation to do what you have hitherto done.