Matrimony OTT-Platforms Jobs Coupons Business

C++ Program to output an integer, a floating point number and a character

C++ Program to output an integer, a floating point number and a character

#include <iostream.h>
#include <conio.h>

void main()
{
  clrscr();
  int x = 10;
  float y = 10.1;
  char z = 'a';
  cout << "x = " << x << endl;
  cout << "y = " << y << endl;
  cout << "z = " << z << endl;
  getch();
}

OUTPUT
x = 10
y = 10.1
z = a

Next Post Previous Post
No Comment
Add Comment
comment url
We detected that you're using an AdBlocker. Please disable it and refresh to continue using our website.
Ad