Created
April 25, 2021 13:01
-
-
Save imsarfraaz/ffb9f27cf82a2c18fd2f57e2768a6262 to your computer and use it in GitHub Desktop.
Program that prints a text of 4 lines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Write a program that prints a text of 4 lines consisting of characters, | |
integer values and floating-point values using cout statement.*/ | |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int marks = 1000; | |
float avg = 90.43; | |
char grade = 'A'; | |
cout << "I'm xyz: "; | |
cout << "\nMy total marks are: " << marks; | |
cout << "\nMy average is: " << avg; | |
cout << "\nMy grade is: " << grade; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Showsoffer aim is to aware every buyer about a good product through reviews and guide helps buyers to choose the right product you want to buy.