3. Write a C# application that asks the user to input ‘A’ and ‘B’ and prints the sum of squares of all even numbers be

Status
Not open for further replies.

AlaaAlbrim

Commendable
Mar 21, 2016
3
0
1,510
3. Write a C# application that asks the user to input ‘A’ and ‘B’ and prints the sum of squares of all even numbers between ‘A’ and ‘B
 
OK.
I tried to solve it but I don't know if it was true or false
Using System;
Namespace example 1 {
Class Program {
Public static void main (String[] args) {
Int A,B,square ;
Console.WriteLine("enter the first number :");
A=Console.ToInt32(readLine());
Console.WriteLine("enter the second number :");
B=Console.ToInt32(readLine());Console.WriteLine("sum of squares of all even numbers between a and b is"+) ;
}
}
}
 
Status
Not open for further replies.