Monday, April 13, 2020

Print user defined values using C

  • Program :
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("\n----------------PRINT USER DEFINED VALUES----------------");
printf("\nPlease enter any two numbers:");
scanf("%d%d",&a,&b);
printf("\nThe two numbers are: %d %d",a,b);
getch();
}

  • Output :

No comments:

Post a Comment

Function Overloading in C++

https://monitechvenkat1620.blogspot.com Program : #include <iostream> using namespace std; int c(int x, int y) {   return...