C language

WRITE A PROGRAM TO CALCULATE AVERAGE OF NUMBER

#include<stdio.h> int main() { printf("\n\n\t\t Welcome here \n\n\n"); int n, i; float sum = 0, x; printf("Enter number of elements: ...
function parameter

Function Declaration Or Prototype

Before a function can be used, it must have first been declared. The function declaration, or prototype, tells the compiler ...

Program to calculate the area of a Square

#include <stdio.h> int main() { int square_side, area; printf("Enter the side of square: "); scanf("%d", &square_side); //calculation of the area ...

Swap two Numbers using a variable

#include<stdio.h> #include<conio.h> void main() { int x = 10, y = 15, temp; temp = x; x = y; y ...

Write a program to check whether student is pass or fail

#include<stdio.h> int main() { printf("\n\n\t\t Check Whether student is Pass or Fail\n\n\n"); int number; printf("Please enter a number:\n"); scanf("%d",&number); /* ...

Program to calculate the area of a circle

#include <stdio.h> int main() { float radius, area_circle; // take radius as input printf("Enter the radius of circle : "); ...