February 11th, 2009 07:09 AM
To display what you intend your program should be like the one below. I have used DJGPP compiler, The program runs fine and produces the result as you desire.
//WAP to sum all the even / odd...
February 11th, 2009 06:38 AM
I also wrote the following program for the same but both of them dont work.
#include<iostream>
class prime
{
int a,b;
public:
void display()
{
February 11th, 2009 06:31 AM
I need help as I am not able to underdstand where am I making a mistake in the following program to display prime numbers between 1 to 50
#include<iostream>
class prime
{
int a,b;
public:...
February 9th, 2009 03:47 AM
Dear Friends,
Can you please help me with the following program?
//WAP to print 1 to 15 in different lines in incrementing manner.
// 1
// 2 3
// 4 5 6
// 7 8 9 10
February 8th, 2009 04:32 AM
Thanks a lot Paul, it works. I am very happy, thanks a lot for the help.
Can you please also suggest me what mistake am I making in the below mentioned program?
//WAP to display prime numbers...
February 7th, 2009 12:44 PM
There is another program for which I have written a code but there is problem with it as the display is showing 51 infinite times.
//WAP to display prime numbers between 1 to 50.
...
February 7th, 2009 12:41 PM
//WAP to display
// 1
// 1 2 1
// 1 2 3 2 1
// 1 2 3 4 3 2 1
// 1 2 3 4 5 4 3 2 1
// achived:
// 1
// ...
February 7th, 2009 02:31 AM
Thanks for your reply, it helped me, but I am still not able to get
1
23
456
78910
can you please give me some more tips.
I also made another program for printing
....1
...121
February 6th, 2009 05:50 AM
Hi Friends,
I am a beginner in C++ I have to make a programms using loops to get the out put as
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
also I have to write a program having output as
1