想看題目請點我
#include <iostream>
using namespace std;
main() {
int n ;
string s ;
while(cin >> s >> n)
{
if(n>=0 && n<=2147483647)
{
if(s=="C")
cout << "\"" << s << "\" can use printf(\"%d\",n); to show integer like " << n << "." << endl ;
if (s=="C++")
cout << "\"" << s << "\" can use cout<
if (s=="Java")
cout << "\"" << s << "\" can use System.out.print(n); to show integer like " << n << "." << endl ;
if (s=="Pascal")
cout << "\"" << s << "\" can use Write(n); to show integer like " << n << "." << endl ;
if (s=="Basic")
cout << "\"" << s << "\" can use Print n to show integer like " << n << "." << endl ;
else
break ;
}
}
}