Write a program that match the value of variable “a”.e.g a=100; if value
matches the print “value matches”
Other wise print “Value of a is not matching
Exact
value of a is : 100 ”
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
int value,a=100;
cout<<"Enter value:";
cin>>value;
if (value==a)
{
cout<<"\nValue Matches";
}
if (value!=a)
{
cout<<"\nValue is not matching";
}
getch();
}
#include <conio.h>
using namespace std;
int main()
{
int value,a=100;
cout<<"Enter value:";
cin>>value;
if (value==a)
{
cout<<"\nValue Matches";
}
if (value!=a)
{
cout<<"\nValue is not matching";
}
getch();
}
0 Questions:
Post a Comment