Joke Collection Website - Blessing messages - The monthly SMS packages of China Mobile in C language are divided into the following three types: (1) 10 yuan package 150 SMS.

The monthly SMS packages of China Mobile in C language are divided into the following three types: (1) 10 yuan package 150 SMS.

The answer is as follows # contains.

Use namespace std

void bill(int kind,int message _ total);

void main()

{

Cout & lt< "(1)/0 yuan contains 150 short messages, and the excess is calculated as 0.65438+1;" & lt& ltendl

Cout & lt< "(2) There are 300 short messages in 20 yuan, and the excess is calculated as 0.65438+ 1 in 0 yuan;" & lt& ltendl

Cout & lt< "(3) There are 600 short messages in 30 yuan, and the excess is calculated as 0.65438+ 1 in 0 yuan." & lt& ltendl

cout & lt& ltendl

Cout & lt& lt "Please enter the package you want to select:";

Int class;

CIN & gt; & gt kindness;

Cout & lt& lt Please enter the number of mails you sent this month:

Int message _ total;

CIN & gt; & gt total number of messages;

bill(kind,message _ total);

cout & lt& ltendl

}

Invalid bill (int kind, int message_total)

{

if(kind== 1)

Cout & lt& lt "Your fee is:"

else if(kind==2)

Cout & lt& lt "Your fee is:"

other

Cout & lt& lt "Your fee is:"

}

Hope to adopt. Thank you.