100+ C++ Programs with Output: For Students & Professionals by Pataskar Aniket
Author:Pataskar, Aniket [Pataskar, Aniket]
Language: eng
Format: azw3
Published: 2016-01-29T05:00:00+00:00
This program takes in two integers x and y as a screen input from the user.
The sum and average of these two integers are calculated and outputted using the 'cout' command.
INPUT :
8 6
OUTPUT :
The sum of 8 and 6 is 14.
The average of 8 and 6 is 7.
49. Program to enter velocity, acceleration and time and print final velocity using the formula : v = u + a * t
#include <iostream.h>
#include <conio.h>
void main()
{
clrscr();
int v,u,a,t;
cout << "Enter the velocity, acceleration, time as integers : " << endl;
cin>>u>>a>>t;
v=u+a*t;
cout << "The final velocity is " << v << "." << endl;
getch();
}
This program takes in the velocity, acceleration and the time as a screen input from the user.
The final velocity is calculated using the formula v = u + a * t, and then outputted using the 'cout' command.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(12446)
Hello! Python by Anthony Briggs(9794)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9686)
The Mikado Method by Ola Ellnestam Daniel Brolund(9678)
Dependency Injection in .NET by Mark Seemann(9222)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8187)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7680)
Grails in Action by Glen Smith Peter Ledbrook(7601)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7441)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(6590)
Microservices with Go by Alexander Shuiskov(6351)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6311)
Practical Design Patterns for Java Developers by Miroslav Wengner(6259)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6232)
Angular Projects - Third Edition by Aristeidis Bampakos(5581)
The Art of Crafting User Stories by The Art of Crafting User Stories(5157)
NetSuite for Consultants - Second Edition by Peter Ries(5111)
Kotlin in Action by Dmitry Jemerov(4950)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(4907)
