CODES:
using System;
using System.Collections.Generic;
using System.Text;
namespace Motion 
{
classProgram
    {
staticvoid Main(string[]
args)
        {
int m;
constdouble a = 9.8;
double f;
Console.WriteLine("Please
enter Mass");
            m
= Convert.ToInt32(Console.ReadLine());  
            f
= m*a;
Console.WriteLine("With
mass {0} the value of force is {1}",m,f);
        }
    }
}
OUTPUT:
ALGORITHM:
·        
Start,
·        
Initializing Integer m,Constant double a =9.8,
Double f.
·        
Output: Please enter Mass.
·        
Set m: Taking input from the user.
·        
Set F using m*a.
·        
Output: Introducing answer.
·        
End.

 
No comments:
Post a Comment