#include<stdio.h>
int main()
{
int z = 0;
int sum;
{
sum+=z;
z++
}
printf("%d",sum);
return
}
how in form of visual basic?
Imports System.IO
Module Module1
Sub Main()
Dim z As Integer = 0
Dim sum As Integer = 0
sum += z
z += 1
Console.WriteLine(sum.ToString())
Console.ReadLine()
End Sub
End Module
Comments
Leave a comment