C_Language_Coding
1.33K subscribers
4 files
31 links
This channel will serve you C language program from basic to advance in a serial order that help you in understand the basic and crack any IT examination in easy way .

Invite other to Subscribe this channel on telegram
@Programming_and_Coding
Download Telegram
Channel created
Interview Hacks 👈

No matter how poorly a candidate is doing.There is always something they got right. Find a way to infuse some positivity into the interview.
1. Program to print "Hello World!!".

#include<stdio.h>
#include<conio.h>

void main()
{
clrscr();
printf("Hello World!!");
getch();
}
#basics
@programming_and_coding
2. Program to assign values of two numbers and print their addition.

#include<stdio.h>
#include<conio.h>

void main()
{
int a=10,b=20;
clrscr();

int ans = a + b;

printf("Addition is : %d",ans);

getch();
}
#basics
@programming_and_coding
3. Program to accept values of two numbers and print their addition.

#include<stdio.h>
#include<conio.h>

void main()
{
int a,b,ans;
clrscr();

printf("Enter 1st number:");
scanf("%d",&a);

printf("Enter 2nd number:");
scanf("%d",&b);

ans = a + b;

printf("Addition is : %d",ans);

getch();
}
#basics
@programming_and_coding
4. Program to print simple interest.

#include<stdio.h>
#include<conio.h>

void main()
{
float interest, p, r, n;
clrscr();

printf("Enter value of P: ");
scanf("%f",&p);

printf("Enter value of R: ");
scanf("%f",&r);

printf("Enter value of N: ");
scanf("%f",&n);

interest=p*r*n/100f;

printf("Simple Interest : %f", interest);

getch();
}
#basics
@programming_and_coding