Monday, April 13, 2020

Print default values using C

  • Program :
#include<stdio.h>
#include<conio.h>
void main()
{
int a= 100;
int b= 20;
clrscr();
scanf("%d%d",&a, &b);
printf("\n----------------PRINT DEFAULT VALUES----------------");
printf("\nThe value of A nd B is:%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...