Skip to content

Opening book details…

About this document

ANSI C Program List by nabin_mahata is a document available to read on EtoBox.

ANSI C –PROGRAM LISTS 1) Program to find sum of two numbers #include #include void main() { int a,b,s; clrscr(); printf("Enter two no: "); scanf("%d%d",&a,&b); s=a+b; printf("sum=%d",s); getch(); } Out put:Enter two no: 5 6 sum=11 2) Program to find area and circumference of circle. #include #include void main() { int r; float pi=3.14,area,ci; clrscr(); printf("enter radius of circle: "); scanf("%d",&r); area=pi*r*r; printf("area of circle=%f",area); ci=2*pi*

Author
nabin_mahata
Language
EN