hello guys ... can you help me to answer those problems,
i'm new in programming. PLS... HELP !
Filename:MP25.C
Write a program that would compute the following AREA, RADIUS, and VOL into a single program called CIRC.C which accepts four options. The option ‘A’ or ‘a’ calculates the area of a circle of a circle(prompting for the radius), the option ‘C’ or ‘c’ calculates the circumference of a circle(prompting for the radius), the option ‘V’ or ‘v’ calculates the volume of a cylinder (prompting for the radius and the height) while the option ‘Q’ or ‘q’ quits the program. The program should loop until the quit option is chosen.
Filename: MP26.C
Write a program that will ask the user to enter a number n and display all the numbers from 1 to n on a single line.
Filename: MP27.C
Write a program that will ask the user to enter a number n and display the sum of all numbers from 1 to n.
Filename: MP28.C
Write a program that asks the user to enter a number n and display the first n even numbers: Example: if n=5, the first 5 even numbers are 2, 4, 6, 8, 10.
Filename: MP29.C
Write a program that asks the user to enter a number n and display the first n odd numbers: Example: if n=5, the first 5 odd numbers are 1, 3, 5, 7, 9
Filename: MP30.C
Write a program containing a function that takes a 5-digit integer and returns the number with its digit reversed. For example, if the number is 12345, the function should return 54321.
Filename: MP23.C
Write a program which quantifies numbers. Read an integer x and test it, producing the following output:
x greater than or equal to 1000 Display the message “hugely positive”
x from 999 to 100 (including 100) Display the message “very positively”
x between 100 and 0 Display the message “positive”
x exactly 0 Display the message “zero”
x between 0 and -100 Display the message “negative”
x from -100 to -999 (including -100) Display the message “very negatively”
x less than or equal to -1000 Display the message “hugely negative”
Thus -10 would print the message “negative”. -100 “very negative” and 458 “very positive”.
Unless you show some code that was written by you, we won't help. You'll never get a solution here. Even if you do, chances are, it's either wrong, or complexly written (on purpose).
#include <stdio.h>
#include <conio.h>
#include<math.h>
int main()
{
int x;
printf("Enter the value of integer:");
scanf("%d",& x);
if(x>=1000)
printf("HUGELY POSITIVE!");
else if
(x>=100&&x<=999)
printf("VERY POSITIVELY!");
else if
(x>0&&x<99)
printf("POSITIVE!");
else if
(x==0)
printf("ZERO!");
else if
(x<=-100&&x>=-99)
printf("VERY NEGATIVELY!");
else if(x>=-1000)
printf("HUGELY NEGATIVELY!");
else printf("The keys did not satisfy the required key.");
getch();
return 0;
}
MP26.C
#include <stdio.h>
#include <conio.h>
int main(void)
{
int n,ctr=0;
printf("Enter value of n:");
scanf("%d",&n);
while(ctr<=n){
printf("%d\n",ctr);
ctr=ctr+1;
}
getch();
return 0;
}
plsss... correct me if have a wrong !
i'm not already finish to other number...