Learn C ProgrammingLearn ProgrammingPrograms On Arithmetic OperatorsResources 009. Write a program to accept a number from user and print it’s square & cube in C language #include<stdio.h> #include<conio.h> main() { int n, Square, Cube; clrscr(); printf("Enter Number: "); scanf("%d",&n); Square=n*n; Cube=n*n*n;…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On Arithmetic OperatorsResources 008. Write a program to print simple interest SI = (PNR)/100 in C language #include<stdio.h> #include<conio.h> main() { float SI,P,N,R; clrscr(); printf("Enter values of P, N and R: ");…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On Arithmetic OperatorsResources 007. Write a program to print area of a triangle A(Triangle)= 0.5 * B * H in C language #include<stdio.h> #include<conio.h> main() { float AREA,B,H; clrscr(); printf("Enter Base & Height: "); scanf("%f%f",&B,&H); AREA=0.5*B*H; printf("Area…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On Arithmetic OperatorsResources 006. Write a program to print area of a circle. A(circle)= 3.142 * R * R in C language #include<stdio.h> #include<conio.h> main() { float AREA,R; clrscr(); printf("Enter Radius: "); scanf("%f",&R); AREA=3.14*R*R; printf("Area of the…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On Arithmetic OperatorsResources 005. Write a program to accept values of two numbers and print their division in C language #include<stdio.h> #include<conio.h> main() { float a,b,c; clrscr(); printf("Enter number 1: "); scanf("%f",&a); printf("Enter number 2:…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On Arithmetic OperatorsResources 004. Write a program to accept values of two numbers and print their multiplication in C language #include<stdio.h> #include<conio.h> main() { int a,b,c; clrscr(); printf("Enter number 1: "); scanf("%d",&a); printf("Enter number 2:…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On Arithmetic OperatorsResources 003. Write a program to accept values of two numbers and print their subtraction #include<stdio.h> #include<conio.h> main() { int a,b,c; clrscr(); printf("Enter number 1: "); scanf("%d",&a); printf("Enter number 2:…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On Arithmetic Operators 002. Write a program to accept values of two numbers and print their addition #include<stdio.h> #include<conio.h> main() { int a,b,c; clrscr(); printf("Enter number 1: "); scanf("%d",&a); printf("Enter number 2:…Prashant ChaudhariSeptember 1, 2012
Learn C ProgrammingLearn ProgrammingPrograms On Basics 001. Write a program to print a string in C language #include<stdio.h> #include<conio.h> main() { clrscr(); printf("\nKodeGod.com"); getch(); }Prashant ChaudhariSeptember 1, 2012