Answer Posted / chintu gandhi
main()
{
int i,n;
clrscr();
printf("\nenter range up to which u want to print");
scanf("%d",&n);
for(i=1;i<n;i=i+2)
{
printf("\n%d",i);
}
getch();
}
| Is This Answer Correct ? | 75 Yes | 33 No |
Post New Answer View All Answers
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
What is a c token and types of c tokens?
program to convert a integer to string in c language'
If the size of int data type is two bytes, what is the range of signed int data type?
write a program to rearrange the array such way that all even elements should come first and next come odd
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.
How can I list all of the predefined identifiers?
How reliable are floating-point comparisons?
What is meant by recursion?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
What is the hardest programming language?
Explain what standard functions are available to manipulate strings?
What is anagram in c?
What is masking?