Q1) Write program, to allow the user to enter tow integer numbers, and find the sum, and subtraction and the multiplication of these numbers. Q2)What are the output of the following program? #include int main() { int sum, d; printf(" *******WELCOME******* \n"); sum = 1 + 2 + 3 + 4 + 5 + 6; d = 8; printf("The Sum=%d\n", sum); printf("%d\n",d); printf("*******THANK YOU*******"); } Q3) Write program, to allow the user to enter tow float number, and find the result of divide of these numbers.
Q1) Write program, to allow the user to enter tow integer numbers, and find the sum, and subtraction and the multiplication of these numbers.
Q2)What are the output of the following program?
#include<stdio.h>
int main()
{
int sum, d;
printf(" *******WELCOME******* \n");
sum = 1 + 2 + 3 + 4 + 5 + 6;
d = 8;
printf("The Sum=%d\n", sum);
printf("%d\n",d);
printf("*******THANK YOU*******");
}
Q3) Write program, to allow the user to enter tow float number, and find the result of divide of these numbers.
Q4) Write program, to allow the user to enter the height, and width of any rectangle, and find the area.
Q5) ) Write program , to allow the user to enter the height, and base of any triangle, the find the area.
Q6) Write program, to allow the user to enter the radius of any circle, and find the area of this circle.
Q7) Write program, to allow the user to enter integer number, and find the square and cubic of the number.
Q8) Write a program to allow the user to enter the temperature in Fahrenheit, and convert it to Celsius temperature.
Note: ctemp=(ftemp-32)*5/9
Q9)What are the output of the following program?
#include <stdio.h> int main( void ){ printf( "Welcome to C!\n" ); return 0;}
Q10)What are the output of the following program?
#include <stdio.h>
int main()
{
printf( "Welcome " );
printf( "to C!\n" );
return 0;
}
Step by step
Solved in 4 steps with 2 images