write a 'c' program to sum the number of integer values
Answer Posted / prince rafi
void main()
{
int sum,a=6,b=3;
clrscr();
sum=a+b;
printf("%d",sum);
}
getch();
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Which header file is used for clrscr?
Why should I prototype a function?
What are the three constants used in c?
What is the translation phases used in c language?
What is typedef example?
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
What is the difference between array and pointer in c?
Write a program to generate random numbers in c?
Using which language Test cases are added in .ptu file of RTRT unit testing???
Which are low level languages?
What is c standard library?
What is 2 d array in c?
The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.
What is getch c?
Can you think of a logic behind the game minesweeper.