Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Complete IIT AIEEE ICSE ISC PMT help forum

Complete help forum for students preparing for icse iit aieee cbse pmt and other related exams.Stay updated about all 2011 exams.
 
HomeHome  PortalPortal  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  India NewsIndia News  
Keywords
2007 2009 SELECT computer CLASS 2010 CASE 2006 question papers YEAR RESULT graph paper UNION ICSE 2004 prelim physics science
Latest topics
» Nitration of aniline - IIT JEE 2018 Advanced - solved
write a program EmptyFri Jun 08, 2018 2:34 am by adianadiadi

» Diamagnetic - Paramagnetic - Ni(CO)4, [Ni(CN)4]2- and [NiCl4
write a program EmptyFri Apr 06, 2018 1:05 am by adianadiadi

» IIT JEE chemistry solved interactive question paper
write a program EmptySun Oct 29, 2017 12:11 pm by adianadiadi

» IIT JEE 2015 SOLVED QUESTION PAPER
write a program EmptyWed Oct 19, 2016 1:44 pm by adianadiadi

» IIT JEE chemistry solved questions
write a program EmptySat Jul 18, 2015 6:15 pm by adianadiadi

» General Description of Chinese Market for Foaming Agent ADC
write a program EmptyFri May 09, 2014 2:09 pm by happybaicaitou

» How to get Lowest Cost MBBS Admission?
write a program EmptyMon Feb 24, 2014 6:39 pm by MENTOR 2014

»  girl boy vashikaran specialist agori baba ji +91-9461165
write a program EmptyTue Jan 21, 2014 6:00 pm by krshastri

»  STRONG LOST LOVE SPELL +91-9461165176
write a program EmptyTue Jan 21, 2014 6:00 pm by krshastri

Top posters
abhas
write a program Vote_lcapwrite a program Voting_barwrite a program Vote_rcap 
Anu..i luv icse...:)
write a program Vote_lcapwrite a program Voting_barwrite a program Vote_rcap 
G-7
write a program Vote_lcapwrite a program Voting_barwrite a program Vote_rcap 
siya
write a program Vote_lcapwrite a program Voting_barwrite a program Vote_rcap 
Candy
write a program Vote_lcapwrite a program Voting_barwrite a program Vote_rcap 
jOhNy
write a program Vote_lcapwrite a program Voting_barwrite a program Vote_rcap 
Apurva
write a program Vote_lcapwrite a program Voting_barwrite a program Vote_rcap 
WinRrule
write a program Vote_lcapwrite a program Voting_barwrite a program Vote_rcap 
ambili
write a program Vote_lcapwrite a program Voting_barwrite a program Vote_rcap 
saif
write a program Vote_lcapwrite a program Voting_barwrite a program Vote_rcap 



Search if you can't find it here

write a program

View previous topic View next topic Go down
AuthorMessage
nausheen
Active member
Active member



write a program Vide
PostSubject: write a program write a program EmptySun Feb 10, 2008 7:55 pm

write a program in java tto find the sum of given series
S=  a/2! + a*a/3!  +a*a*a/4! ............a*a*a*a*a*a*a*a*a*a/11!
where
factorial of 4 means : 4!=4*3*2*1
Back to top Go down
amrutha
Active member
Active member



write a program Vide
PostSubject: Re: write a program write a program EmptyMon Feb 25, 2008 6:10 pm

import java.io.*;
public class series
{
float S;
ISR ir=new ISR(System.in);
BR br=new BR(ir);
public void prog()throws IOException
{
System.out.println("Enter a number");
String s =br.readLine();
int a=Integer.parseInt(s);
while(a!=0)
{
for(int i=2;i<=11;i++)
{
for(int j=1;j<=10;j++)
{
S=S+Math.pow(a,j)/i;
}
}
}
System.out.println("The sum of the series is"+S);
}
}
Back to top Go down
amrutha
Active member
Active member



write a program Vide
PostSubject: Re: write a program write a program EmptyMon Feb 25, 2008 6:11 pm

just check out whether the output is right.
Back to top Go down
nausheen
Active member
Active member



write a program Vide
PostSubject: Re: write a program write a program EmptyTue Feb 26, 2008 5:44 pm

the output is not coming
1) variable S should be DOUBLE
Secondly  we have to find the factorial of i and then divide it
Back to top Go down
SHASHANK N K
Active member
Active member
SHASHANK N K


write a program Vide
PostSubject: Re: write a program write a program EmptyTue Feb 26, 2008 11:52 pm

import java.io.*;
public class Product
{
InputStreamReader isr=new InputStreamReader(System.in);
BufferedReader bf=new BufferedReader(isr);
public void main() throws IOException
{
int a[][]=new int[3][4];
int b[][]=new int[4][3];
int c[][]=new int[3][3];
for(int i=0;i<3;i++)
{
for(int j=0;J,4;j++)
{
a[i][j]=Integer.parseInt(bf.readLine());
}
}
for(int k=0;k<4;k++)
{
for(int l=0;l<3;l++)
{
b[k][l]=Integer.parseInt(bf.readLine());
}
}
for(int m=0;m<3;m++)
{
for(int n=0;n<3;n++)
{
c[m][n]=0;
for(int o=0;o<4;o++)
{
c[m][n]=a[m][o]*b[o][n]+c[m][n];
}
}
}
System.out.println("The resultant matrix is:-");
for(int p=0;p<3;p++)
{
for(int q=0;q<3;q++)
{
System.out.println(c[p][q]);
}
}
]



//tis will give u the output but u neeed to enter n dats the limit which in this case is 11........... Arrow
Back to top Go down
Sponsored content




write a program Vide
PostSubject: Re: write a program write a program Empty

Back to top Go down

write a program

View previous topic View next topic Back to top
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Complete IIT AIEEE ICSE ISC PMT help forum :: Computer :: Computer help forum-