Posts

Showing posts from November, 2022

Infinite loop program

 #include <stdio.h>   int main()   {      for(;;)      {        printf("Hi It's me Akshay Palampalle.......'");      }   return 0;   } 

Program to Find the Simple Interest

 #include<stdio.h> int main() { // Program to find the simple interest // int p, r, n, si; printf("Enter Principle Ammount : "); scanf("%d", &p); printf("Enter Rate of Interest : "); scanf("%d", &r); printf("Etner No of Years : "); scanf("%d", &n); si = p*r*n/100; printf("\nSimple Interest = %d", si); return 0; // Program Succefully executed without any error. // }

Program to Find the average of three numbers by Akshay Palampalle

 #include<stdio.h> int main() { // Program to find the average of three numbers. //               // By Akshay Palampalle // int a, b, c; int sum, avg; printf("Read A :"); scanf("%d", &a); printf("Read B :"); scanf("%d", &b); printf("Read C :"); scanf("%d", &c); sum = a+b+c; printf("\nSum = %d", sum); avg = sum / 3; printf("\nAverage = %d", avg); return 0; // Program Successfully Executed Withouot Any Error. // }