#include
#include
#include
void main()
{
int i,n,sum=0;
clrscr();
printf("n=");
scanf("%d",&n);
for (i=1;i<=n;i++)
sum=sum+pow(i,2);
printf("sum=%d",sum);
getch();
}
program to extract a given word from a file
write the javascript code to display the reverse no. of given no. (e.g. 247 reverse of 742)
To write a C++ program to display the student details using class and array of object.
.... String line = "This is example program with spaces"; String[] tokens = line.split(" "); System.out.println(tokens.length-1); .......
This functionality is already in Java. String.toLowerCase() and String.toUpperCase() will take care of it for you.
program to extract a given word from a file
It is your face
write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html
write the javascript code to display the reverse no. of given no. (e.g. 247 reverse of 742)
No.
165
Yes, do write, or if you're too lazy to your homework, use google.
#this program to calculate princple amount using perl. print "enter the amount given;","\n"; $A=<stdin>; print "enter the rate of interst given;","\n"; $R=<stdin>; print "enter the no of years given;","\n"; $Y=<stdin>; $o=1+$R; $e=$o**$Y; $t=1/$e; $f=1-$t; $p= $A*$f; print "princple amount $p";
you have not given enough information to answer, generally no squares are in hexagons.
To write a C++ program to display the student details using class and array of object.
Yes.
8086 assembly language program to check wether given number is perfect or not