using System;
public class Program
{
public static void Main()
int total=0;
int x=1;
int odd=0;
int even=0;
while(x<101){
total = total + x;
if(x%2==1){
odd = odd + x;
}
if(x%2==0){
even = even + x;
x++;
Console.WriteLine("result = {0}",total);
Console.WriteLine("sum of odd = {0}",odd);
Console.WriteLine("sum of even = {0}",even);