Forum     

Go Back   Digit Technology Discussion Forum > Software > Software Q&A
Register FAQ Calendar Mark Forums Read

Software Q&A Having trouble with software? Find solutions here


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 09-09-2007, 03:44 AM   #1 (permalink)
Techie By Heart
 
mavihs's Avatar
 
Join Date: Feb 2007
Location: Cyber City
Posts: 769
Question C++


can u guys give me a site where i can reffere about c++ & get some solution.
& i got this prob with some question i hav. if u guys can solve it or give a hint or anything.

here it is:-
1) WAP to display th following format on the screen.(using loop)
Code:
       1
       1   2
       1   2   3
       1   2   3   4
2) WAP to display th following format on the screen.(using loop)
Code:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
3) WAP to print the sum of the following series

1-(x/2!)+(x2/3!)-(x3/4!)+. . . . . . . . . . . . . . +(-1)n(xn/(n+1)!)


plzzzzzzz give the ans or atleast a hint or somthing. I got an exam on monday. i hav 2 prepare for it. i can't understand these question how 2 do. plzzzzz help!
__________________
█§ ║╖ î v â ╥╥╖█(™©)
mavihs is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 09-09-2007, 10:40 AM   #2 (permalink)
Right Off the Assembly Line
 
Join Date: Jun 2007
Posts: 23
Default Re: C++

#include<iostream.h>
#include<conio.h>
void main()
{
int i,j;
for(i=1;i<6;i++)
{
for(j=1;j<i;j++)
{
cout<<"\t"<<j;
}
cout<<"\n";
}
getch();
}

here is the hint Now try making other two programs
kg_87 is offline  
Old 09-09-2007, 04:21 PM   #3 (permalink)
Ron
||uLtiMaTE WinNER||
 
Ron's Avatar
 
Join Date: Nov 2006
Location: Kathmandu,Nepal
Posts: 698
Default Re: C++

Hey.......... c++ is getting popular day by day................. in the forum..............
__________________
||uLtiMaTE WinNER||
Ron is offline  
Old 09-09-2007, 04:58 PM   #4 (permalink)
Rubik's Uncle!!
 
Charan's Avatar
 
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,791
Default Re: C++

^^ Yea "HOME WORK"
Charan is offline  
Old 09-09-2007, 05:04 PM   #5 (permalink)
Dreamweaver
 
Gigacore's Avatar
 
Join Date: Aug 2006
Location: Bangalore
Posts: 3,904
Default Re: C++

Post it here instead..... you will get more response

Post your C/C++ Programs Here
__________________
Today's noobs are tomorrow's geeks. Don't make fun of them.. encourage them. - Gigacore

Follow me on twitter.com/gigacore
Gigacore is offline  
Old 09-09-2007, 05:09 PM   #6 (permalink)
Techie By Heart
 
mavihs's Avatar
 
Join Date: Feb 2007
Location: Cyber City
Posts: 769
Default Re: C++

it was suppose 2 be class work but no 1 completed it. it may come in the exam which is 2moro so i'm really scared if it comes. just tell me how 2 do the second 1. rest of them 1 can figure out but it'll take time. plzzzzzzzzzzzzz. til 2nigth can u give me the ans.
__________________
█§ ║╖ î v â ╥╥╖█(™©)
mavihs is offline  
Old 09-09-2007, 05:44 PM   #7 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: C++

The last one is Exponential series I guess. e power minus x.
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 10-09-2007, 07:27 PM   #8 (permalink)
Wise Old Owl
 
piyush gupta's Avatar
 
Join Date: Sep 2005
Location: never land
Posts: 1,284
Default Re: C++

Its all class home work

if u just google it na u will got alot of solutions
piyush gupta is offline  
Old 10-09-2007, 07:34 PM   #9 (permalink)
Deadman Walking
 
Batistabomb's Avatar
 
Join Date: Feb 2007
Location: Visakhapatnam
Posts: 879
Default Re: C++

fireseeker give your mail id i will send a great tutorial
__________________
What looks to be nothing,finally that becomes everything...
and what is everything suddenly that changes to nothing...
Learn to live... &
Live to learn...
Batistabomb is offline  
Old 10-09-2007, 11:40 PM   #10 (permalink)
The Frozen Nova
 
casanova's Avatar
 
Join Date: Sep 2004
Location: Trespasser in Virtual Land
Posts: 1,641
Default Re: C++

Do it on your own. I will give you the logic for the second proggy.

Ask user how many lines. Answer five. So, it means last line should have 9 ones.

so u can use a for loop until i<lines
another for loop with in it j<(lines-i)/2
print a space here
when the loop exits, you can print the no

Quote:
for (i=0;i<lines;i++)
{
for (j=0;j<(lines-i)/2;j++)
printf("\t");
printf("1");
}
Haven't checked it. But this should work with little or no modification.
__________________
I dream of a better tomorrow... where chickens can cross roads and not have their motives questioned.

www.nerdweed.blogspot.com
casanova is offline  
Old 11-09-2007, 02:17 AM   #11 (permalink)
Techie By Heart
 
mavihs's Avatar
 
Join Date: Feb 2007
Location: Cyber City
Posts: 769
Default Re: C++

thanks. anyway my exam is over. now i'll be preparing for the practical which will be after a week or so. So i got more time 2 solve these questions & understand them. anyway thank 2 all.
__________________
█§ ║╖ î v â ╥╥╖█(™©)
mavihs is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by clinton
- by Tenida
- by abhidev
- by abhidev

Advertisement




All times are GMT +5.5. The time now is 05:18 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2