Skip to content

Instantly share code, notes, and snippets.

@imsarfraaz
Created April 25, 2021 13:01
Show Gist options
  • Save imsarfraaz/ffb9f27cf82a2c18fd2f57e2768a6262 to your computer and use it in GitHub Desktop.
Save imsarfraaz/ffb9f27cf82a2c18fd2f57e2768a6262 to your computer and use it in GitHub Desktop.
Program that prints a text of 4 lines
/*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;
}
@imsarfraaz
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment