Joke Collection Website - Blessing messages - Programming problem if statement c language
Programming problem if statement c language
# include & ltstdio.h & gt
void main()
{
Floating point t 1, t2, t3, t =10;
Printf ("Please enter the number of messages sent:");
scanf("%f ",& ampt 1);
Printf ("Please enter the number of minutes to talk to the local mobile phone:");
scanf("%f ",& ampT2);
Printf ("Please enter the number of minutes to talk to the local fixed telephone:");
scanf("%f ",& ampT3);
if(t 1 & gt; 60)
t+=(t 1-60)* 0. 1;
If (t2 & gt20)
t+=(T2-20)* 0. 15;
t+= T3 * 0.2;
Printf ("user's mobile phone fee is %f", t);
}
I haven't debugged it. Try it. There should be no problem.
- Related articles
- What are WeChat auxiliary tasks?
- Thanksgiving handwritten newspaper content
- How to treat boys as full of energy as they disappear after breaking up?
- Full text of the judgment of Hongmao medicinal liquor v. Shanghai lawyer
- Is it free to send SMS by fetion every month in M-Zone? Or do you want a monthly subscription?
- 136 received a text message.
- How long does it take for online loans to be overdue?
- What are the WeChat blessings for the Jingzhe solar term?
- A euphemism for asking the contractor for living expenses.
- How can I see the invisible man on the buckle?