June 18th, 2009, 06:27 PM
#1
C++ assignment for the gurus only . Solve this if u can .
i need some nice guru to solve this soon. am aving problem with my VB ,
#include<stdio.h>
main()
äint a,b;
a=5;
b=2;
printf("%d",a*b);
printf("%d",a+b);
printf("%d",-b);
printf("%d",a/b);
printf("%d",a-b);
printf("%d",a%b);
return 0;
ñ
. i cant compile it,
am getting error message.
i need the answer. pls
June 18th, 2009, 06:40 PM
#2
Re: C++ assignment for the gurus only . Solve this if u can .
Try
Code:
int main()
{
int a=5, b=2;
printf("%d\n",a*b);
printf("%d\n",a+b);
printf("%d\n",-b);
printf("%d\n",a/b);
printf("%d\n",a-b);
printf("%d\n",a%b);
return 0;
}
8)
June 18th, 2009, 07:12 PM
#3
Re: C++ assignment for the gurus only . Solve this if u can .
Pls I need the solution . I can't even download a compiler now , av a poor internet connection , pls some should solve THIS for me .
June 18th, 2009, 09:07 PM
#4
Re: C++ assignment for the gurus only . Solve this if u can .
Originally Posted by
zoba
Pls I need the solution . I can't even download a compiler now , av a poor internet connection , pls some should solve THIS for me .
Which is it? You're getting error messages or you don't have a compiler?
June 19th, 2009, 01:24 AM
#5
Re: C++ assignment for the gurus only . Solve this if u can .
am aving problem with my VB
Besides that should be C/C++ not VB, I think you have equal problems with your keyboard.
June 19th, 2009, 02:13 AM
#6
Re: C++ assignment for the gurus only . Solve this if u can .
Which is it? You're getting error messages or you don't have a compiler?
Error : Compiler not found.
June 19th, 2009, 03:26 AM
#7
Re: C++ assignment for the gurus only . Solve this if u can .
hi,
There are some special characters in the program because of which it is not compiling.Anyways,answer for your question would be as following...
10
7
-2
2
3
1
Thanks
June 19th, 2009, 03:37 AM
#8
Re: C++ assignment for the gurus only . Solve this if u can .
June 19th, 2009, 03:47 AM
#9
Re: C++ assignment for the gurus only . Solve this if u can .
Originally Posted by
Skizmo
Error : Compiler not found.
lol, good one....
June 19th, 2009, 07:17 AM
#10
Re: C++ assignment for the gurus only . Solve this if u can .
Originally Posted by
rag84dec
hi,
There are some special characters in the program because of which it is not compiling.Anyways,answer for your question would be as following...
Perhaps you didn't notice the rest of us deliberately not doing this guy's homework for him.
June 19th, 2009, 01:19 PM
#11
Re: C++ assignment for the gurus only . Solve this if u can .
Come on, all you Gurus out there, the challenge is on, I was going to try to help, but he wants Gurus only for such a complicated problem, and I aint a guru..... yet.
...Don't be afraid, only believe.
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width
Bookmarks