8、阅读下面程序,则在执行时候的输出为。#include "stdio.h"main(){int x=1,y=2,z=0;if(x=2)z=x,x=y,y=z;printf("%d,%d\n",x,y);}
查看答案
9、以下程序的输出结果是。#include "stdio.h"void main(){int x=100, a=10, b=20, ok1=5, ok2=0;if(a) x=1;else if(ok2) x=10;else x=-1;printf("%d\n", x);}
10、阅读下面的程序,当程序在执行时,如果输入的是′A′,则输出结果为。#include "stdio.h"main(){char a;a=getchar();switch(a){ case 65: printf("%c",′A′);case 66: printf("%c",′B′);default :printf("%s\n","other");}}
11、编程程序实现超市折扣金额计算:输入消费金额,消费金额满1000(含1000),打九折,消费金额满2000(含),打8折,消费金额满5000(含),享七折优惠,根据折扣,输出折扣后的金额。
The Surprising Purpose of TravelTravel is ______1_____ and sometimes even unpleasant; then what is the driving force behind our travel? We travel because we need to. Sometimes our travel is amustbecause we should attend the business luncheon, because we should celebrate Thanksgiving with our mom. We travel because we want to.Owing to the fact that most travel is ____2___, we just travel following our heart. Most people travel for the sake of ______3____, but their mind tends to solve the stubborn ___4________ issues while on vacation. What is the real purpose of travel? Travelling to a new place can make us less controlled by familiar cognitive patterns that imprison us. As a result, we can better combine the new with the old, the mundane is graspedfrom a slightly more abstract perspective.To _______5___ travelers, multicultural contrast means that they are open to ambiguity and willing to see the world in different ways, thus to expand the ___6___________ of their “cognitive inputs” as they refuse to settle fortheir first answers and initial guesses. Of course, that mental flexibility is a side effect of difference and we know what we did not know in the past, by which we become more open-minded and less __7_____.Apart from its advantages, travel also has it ____8_____, which make us not take great pleasantness. More often than not, we need a vacationafter our vacation. We travel because we need to , because distance and difference are the _________9____ of creativity. Travel will change our mind to some extent, which in turn can have _____10___ on everything in our life.