Since you don't know if/else statements clearly here is a quick on-the-spot guide/tutorial:
if and else statements are used when the expected input/output may be different each time and you want...
Type: Posts; User: Stormboy
Since you don't know if/else statements clearly here is a quick on-the-spot guide/tutorial:
if and else statements are used when the expected input/output may be different each time and you want...
Thanks guys. I think I get pointers now. :D
%d is a formatter for integer values. When you use %d in a printf statement always specify the variable after string quotes followed by a comma with an integer. In your case you are don't doing that....
Hi,
I am almost going to finish the C Tutorials. But I still am not clear with one thing. That is Pointers. I get what pointers are. But I don't get why, how and when do we use them. I tried reading...
Holy cow. Even if its in C, its way shorter than mine and works correctly. ;O. Nice one man.
LOL. My bad.
Aww yeah!! The solution came correct when I replaced my checkPentagonal() function with yours. :)
Thanks a bunch dude.
Output: 1533776805
The new code:
#include <iostream>
#include...
My assumption isn't wrong. Lets make a table of odd n, Triangular(n) and Is Hexagonal?
n (odd) -----Triangular(n)----- Is Hexagonal
------------ --------------- ...
OK, I am actually in a bit of *rage mood* at the moment. So, I'll try to finish the question quick. I am trying to solve Problem 45 of Project Euler.
It reads:
So, after researching a bit, I...
Thanks for the tips. I'll keep them in mind :).
Thanks for the replies :). I really appreciate it. I've changed my code a bit according what oogabooga said.
Here it is:
#include <stdio.h>
#define absolute_zero -273
#define max_lim 50000
...
Hi,
I solved the 1st problem on CProgramming. However, when I checked the solution, it was very much different from my code. When I run my program it gives the expected result all right. So, I need...