c++ .............................
Type: Posts; User: m600
c++ .............................
ok well this is the code i have so far but it wont let me use scanf which is commented out atm
#include <stdio.h>
#include <DBOS\GRAPHICS.H>
#include <STDLIB.H>
int main()
{
int...
2's compliment so you add 256 to any minus number, then convert it
ok i need it to convert the number into a binary representation in 8 bits, so 5 would be 00000101
thanks
hello everyone
i need code which converts any number between -128 to 127 into binary
this is not my homework but a small part of a task assigned to me which states i can use the internet for help...
sweet Elysia i got it now!!
thanks a lot everyone!!!
i gotta go sleep now
take care
well i would want the a++ to be a+2, but when ever i try doing that it doesnt work....
ok i have to write a program which counts from 1 to 15 and adds all the odd numbers
#include<stdio.h>
main()
{
int a,sum;
YES IT WORKS!!!
thank you so much, is it alright if i ask you guys one more thing?
thats was my real code... i corrected the int,c; already
how do i add braces to specify what it should cover?
im kinda new at this so yeah....
thanks a lot
@MK27 it says there is a semi colon...
tried that and im not getting any errors.....
all it does is just let me type
anything else that can help?
thanks
hey
im new here and i have an exam tomorrow so i need to learn how to do this!!!
the question is to write a program that prompts the user to enter a value, with a message then being displayed...