int main()
{
int i,j,sum,k;
for(i=1;i<=5;i++)
{
k=1;
sum =0;
for(j=1;j<=i;j++)
{
sum = sum+(i*k);
k=k*10;
}
cout<< sum;
cout<< "\n";
}
}
for (i=0; i<1; ++i) puts ("55555 6666 777 44 3");
Without knowing the contents of the TippingBucketData.txt file nor how to process it, it would be impossible to say how such a program would be written.
12345 1234 123 12 1
Write a program which takes the gender and salary ,the age from user. the program should calculate and display the following information. i. If gender is male and age is greater >=18,then the tax =5%of the salary. ii. If gender is female and age is >=18,then tax=3%of salary. The program should display the output as follows: Gender = Age = Tax = Salary before tax = Salary after tax =
write a program to print the series 1/12+1/22+.........+1/n2 ?
HIYou can first include the 1st program in ur 2nd program using # include and then whatever be the output from frst it can be used in second program.pankajThat's what popen is good for. Read the manual.
To have your program output to a file you must do the following :First you must write the library that allows the use of files#include This will allow you to use the necessary codes to input or output to filesThen in your program you write the following codeofstream outfile("statistic.txt");This declares the assigned file for output. Here statistic.txt is the assign file. The program will send the output to that file.To send the output to the assigned file instead of the screen do the following:Instead of "cout
How do you write a program with do while loop so that the output is 123456 =720
Without knowing the contents of the TippingBucketData.txt file nor how to process it, it would be impossible to say how such a program would be written.
void main() { printf("followiing"); }
12345 1234 123 12 1
possible. You can write a small bios program in asm to output helloworld.
This question cannot be generally answered, the output depends on the actual program.
Write a program which takes the gender and salary ,the age from user. the program should calculate and display the following information. i. If gender is male and age is greater >=18,then the tax =5%of the salary. ii. If gender is female and age is >=18,then tax=3%of salary. The program should display the output as follows: Gender = Age = Tax = Salary before tax = Salary after tax =
You have start diagram follow by input diagram and output diagram, then exit diagram.
write a program to print the series 1/12+1/22+.........+1/n2 ?
HIYou can first include the 1st program in ur 2nd program using # include and then whatever be the output from frst it can be used in second program.pankajThat's what popen is good for. Read the manual.
Write a two- paragraph explanation to address the following questions: Why are you interested in this program (education) and how do you expect to benefit from it?