Question: Write a program that reads an integer and determines and prints whether it’s odd or even. [Hint: Use the remainder operator.…
Question: Write a program that reads in three integers and then determines and prints the largest and the smallest integers in the…
The Vatican said that Pope Francis, during a meeting on Monday with Mark Zuckerberg, Facebook founder and Chief Executive, discussed…
Question: Write a program that prints the following shapes with asterisks.
1 2 |
/* <br /> * Author: AGHATISE OSAZUWA<br /> * Website: www.cscprogrammingtutorials.com <br /> *<br /> * Program to print shapes with asterisks.<br /> */<br /><br />#include <stdio.h><br />int main ( ){<br /> //Program to print shapes.<br /> puts("********* *** * * n");<br /> puts("* * * * *** * * n");<br /> puts("* * * * ***** * * n");<br /> puts("* * * * * * * n");<br /> puts("* * * * * * *n");<br /> puts("* * * * * * * n");<br /> puts("* * * * * * * n");<br /> puts("* * * * * * * n");<br /> puts("********* *** * * n");<br /> return 0;<br />}<br /> |
Question: Write a program that reads in the radius of a circle and prints the circle’s diameter, circumference and area. Use…