美文网首页
一些简单的C++程序题

一些简单的C++程序题

作者: 小白日常笔记 | 来源:发表于2019-01-07 12:39 被阅读0次

The part is just about the basic part of C++ programming, and no Class or subsequent knowledge is involved.

Question :

1. Write a program that displays the area and perimeter of a circle that has a radius of 5.5 using the following from.

Perimeter=2*radius*π.

Area=radius*radius*π.

The answer of  question 1

2.Write a program that displays the area and perimeter of a rectangle with of 4.5 and height of 7.9 using the following formula:                          

 Area=width*height 

The answer of  question 2

3.Enter the length,width,and height of a Cuboid,and output its volume.

The answer of  question 3

相关文章

网友评论

      本文标题:一些简单的C++程序题

      本文链接:https://www.haomeiwen.com/subject/onfurqtx.html