1. Write a Program that prints a text of 4 lines consisting of characters, integer values and floating point values using cout statement.
Chapter No: 4
Input & Output
Programming Exercises Solution
Q No 1 :
Write a Program that prints a text of 4 lines consisting of characters, integer values and floating point values using cout statement.
Solution :
Latest News
Latest News
Latest News
Latest News
Latest News
Latest News
Latest News
Latest News
Latest News
Latest News
Latest News
Latest News
Latest News
Latest News
Latest News
Latest News
Latest News Solution :
#include<iostream>
#include<conio.h>
void main()
{
char c='S';
int i=100;
float f=3.14;
cout<<"Welcome to programming!"<<endl;
cout<<"Character Value: "<<c<<endl;
cout<<"Integer Value: "<<i<<endl;
cout<<"Floating Point Value: "<<f<<endl;
getch();
}
Next Post :
2: Write a program that inputs the radius of the sphere from the user.
http://www.tdedchangair.com/webboard/viewtopic.php?f=2&t=163629
http://naszejedlicze.pl/showthread.php?tid=257140
http://banglaforum.net/forum/viewtopic.php?f=16&t=117250
https://20smagazine.com/community/showthread.php?tid=4627
http://forum.naronanews.com/showthread.php?tid=22502
http://forum.aekatowice.pl/basketball-seekerss-t-27019.html
http://www.chicagotabletennisclub.com/forum/showthread.php?tid=21560
http://forum.ustageldi.com/showthread.php?p=63896#post63896
http://beastmodegames.com/forum/viewtopic.php?f=2&t=243571
http://sotall.org/communities/viewtopic.php?f=8&t=359608
Post a Comment