Write a program to perform
following task
a. Declare
two variable x and y at float types variables.
b. Declare
m as an integer variable
c. Assign
the value 75.86 to x and 143.48 y
d. Assign
the sum of x and y to m
e. Display
the value of m
f. Comment
on the output
CODING:-
using System;
class edit
{
public static void Main()
{
float x,y;
in t;
x=75.86F;
y=143.48F;
m=(int)(x+y);
Console.WriteLine("The sum of two
float number is:"+m);
}
}
OUTPUT:-
1
No comments:
Post a Comment