Windows 8 に Dev C++ をインストールしました。これが初めてのプログラムですが、実行するまでスムーズに動作します。
これが私の最初のプログラムです:
コンパイルすると・・・
しかし、実行すると、ここで問題が発生します...
ただし、コンパイラ ログには次のメッセージが表示されます。
Compiler: Default compiler
Executing gcc.exe...
gcc.exe "C:\Users\Zainab\Downloads\Table.c (2).c" -o "C:\Users\Zainab\Downloads\Table.c (2).exe" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
gcc.exe: Internal error: Aborted (program collect2)
Please submit a full bug report.
コード:
#include<stdio.h>
int main()
{
int a, b, c=1;
printf("Enter the table of:");
scanf("%d", &a);
printf("Enter the number of times:");
scanf("%d", &b);
while (c <= b) {
printf("%d", a);
printf("* %d", c);
printf("= %d", a*c);
if (c < b) {
printf("\n");
}
c++;
}
return 0;
getch();
}