Basic Programs
If Else based Programs
Loop Based Programs
Array Based Programs
String Programs
Function Programs
Pointers Programs
Structure & File Handling Programs
Data Structure Programs
Basic C Programs
C Program to calculate area and parameter
#include <stdio.h> #include <conio.h> void main() { int a=0,b=0,area=0,per=0; printf("enter length and breadth"); scanf("%d%d", &a,&b); area=a*b; per=2*(a+b); printf("area=%d perimeter=%d", area,per); }
Output of the above program is as following.
Video/ C Introduction
Watch video in full size