#include "StdAfx.h"
#include <stdio.h>
#include <iostream>
using namespace std;
Void main()
{
double x.x1=20.0001,x0=-20,dx=5,y;
x=x0;
while ((x<2)&&(x<x1))
{
y=x;
cout.width(3);
cout.precision(5);
cout<<"x="<<x<<"y="<<y<<endl;
x+=dx;
}
while((2<=x<10)&&(x<x1))
{
y=10*x;
cout.width(3);
cout.precision(5);
cout<<"x="<<x<<"y="<<y<<endl;
x+=dx;
}
while((x>=10)&&(x<x1))
{
y=x/2;
cout.width(3);
cout.precision(5);
cout<<"x="<<x<<"y="<<y<<endl;
x+=dx;
}
}
I2luY2x1ZGUgIlN0ZEFmeC5oIgojaW5jbHVkZSA8c3RkaW8uaD4KI2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwpWb2lkIG1haW4oKQp7CmRvdWJsZSB4LngxPTIwLjAwMDEseDA9LTIwLGR4PTUseTsKeD14MDsKd2hpbGUgKCh4PDIpJiYoeDx4MSkpCiAgICAgewogICAgICAgICAgeT14OwogICAgICAgICAgY291dC53aWR0aCgzKTsKICAgICAgICAgIGNvdXQucHJlY2lzaW9uKDUpOwogICAgICAgICAgY291dDw8Ing9Ijw8eDw8Ink9Ijw8eTw8ZW5kbDsKICAgICAgICAgIHgrPWR4OwogICAgICB9CiAgd2hpbGUoKDI8PXg8MTApJiYoeDx4MSkpCiAgICAgIHsKICAgICAgICAgIHk9MTAqeDsKICAgICAgICAgIGNvdXQud2lkdGgoMyk7CiAgICAgICAgICBjb3V0LnByZWNpc2lvbig1KTsKICAgICAgICAgIGNvdXQ8PCJ4PSI8PHg8PCJ5PSI8PHk8PGVuZGw7CiAgICAgICAgICB4Kz1keDsKICAgICAgIH0KICAgd2hpbGUoKHg+PTEwKSYmKHg8eDEpKQogICAgICAgewogICAgICAgICAgeT14LzI7CiAgICAgICAgICBjb3V0LndpZHRoKDMpOwogICAgICAgICAgY291dC5wcmVjaXNpb24oNSk7CiAgICAgICAgICBjb3V0PDwieD0iPDx4PDwieT0iPDx5PDxlbmRsOwogICAgICAgICAgeCs9ZHg7CiAgICAgICB9CmdldGNoYXIoKTsKfQ==
prog.cs(2,0): error CS1024: Wrong preprocessor directive
prog.cs(3,0): error CS1024: Wrong preprocessor directive
prog.cs(4,0): error CS1024: Wrong preprocessor directive
prog.cs(4,6): error CS1041: Identifier expected, `namespace' is a keyword
prog.cs(4,19): error CS1001: Unexpected symbol `;', expecting identifier
prog.cs(7,0): error CS1041: Identifier expected, `double' is a keyword
prog.cs(7,11): error CS1001: Unexpected symbol `=', expecting identifier
prog.cs(11,10): error CS1001: Unexpected symbol `y', expecting identifier
prog.cs(12,20): error CS1001: Unexpected symbol `(', expecting identifier
prog.cs(13,24): error CS1001: Unexpected symbol `(', expecting identifier
prog.cs(19,10): error CS1001: Unexpected symbol `y', expecting identifier
prog.cs(20,20): error CS1001: Unexpected symbol `(', expecting identifier
prog.cs(21,24): error CS1001: Unexpected symbol `(', expecting identifier
prog.cs(27,10): error CS1001: Unexpected symbol `y', expecting identifier
prog.cs(28,20): error CS1001: Unexpected symbol `(', expecting identifier
prog.cs(29,24): error CS1001: Unexpected symbol `(', expecting identifier
prog.cs(34,1): error CS8025: Parsing error
Compilation failed: 17 error(s), 0 warnings