Millillion Tech
Be involved with technology
Home
Buy Product Online
Medical & Health
Educational
Computer & Technology
Downloads
Books
Tutorials
Software
Windows
Computer Science
Programming Languages
C
C++
Ruby
Java
Python
Data Sructure
Software Development
Web Design & Development
Robotics
Academic
Help
Educational help
Technical Help
About Us
Translate
Categories
C Programming Problem Solving
Data Structure Problem Solving
Download
INNER POST ADS
Powered by
Blogger
.
Thursday, June 4, 2015
Write a C program that calculate the average of three integers. Input the values from user.
12:49 AM
C Programming Problem Solving
No comments
#include<stdio.h>
void main()
{
float a,b,c,avrg;
printf("A? ");
scanf("%f", &a);
printf("B? ");
scanf("%f", &b);
printf("C? ");
scanf("%f", &c);
avrg= (a+b+c)/3;
printf("%f", avrg);
}
Download source code
Email This
BlogThis!
Share to X
Share to Facebook
Newer Post
Older Post
Home
0 comments:
Post a Comment
Social Profiles
Popular Posts
Archives
Blog Archive
▼
2015
(25)
►
August
(6)
▼
June
(10)
Using linked list, write a C program, that will in...
Queues implementation( add, remove, peek) in C pr...
Stack implementation( Push, Pop, Display) in C pro...
C Programming- linked list, creating nodes, insert...
C programming code for leap year.
Write a C program that will input some students' o...
Write a C program that will convert temperature fr...
Write a C program that calculate the average of th...
Write a C programm that will calculate the area of...
Write a C program thar will enter a line of text, ...
►
May
(9)
Popular Posts
Age Calculator using C Programming
#include<stdio.h> #include<time.h> int leapYearFeb(int year, int mon) //Leap year checking { int flag = 0; if (year %...
C Programming Infix To Postfix Conversation
#include<stdio.h> #include<conio.h> #include<string.h> #include<math.h> #include<stdlib.h> #defi...
Using linked list, write a C program, that will input some students' Id, Name, Department and CGPA respectively and print them.
#include<stdio.h> #include<conio.h> #include<string.h> #include<stdlib.h> #define SIZE 20 struct diu_cse ...
(no title)
Write a C program that will convert temperature from celcius to fahrenheit and fahrenheit to celcius. Input values from user.
#include<stdio.h> #include<math.h> void main() { char user; float clcs, farn, celcius, fahrenheit; print...
C Programming Binary Search Tree (BST) implementation insert and display it inorder, preorder and postorder
#include<stdio.h> #include<conio.h> #include<stdlib.h> #include<malloc.h> typedef struct binary_tree { stru...
Using C, Input a string and check that it is palindrome or not.
#include <stdio.h> #include <string.h> void main() { char str[25], rev_str[25] = {'\0'}; int i, len = 0, flag ...
Queues implementation( add, remove, peek) in C programming
#include <stdio.h> #define MAX 50 int queue_array[MAX]; int rear = -1; int front = -1; void main() { int choice; ...
Write a C program thar will enter a line of text, store in an array and then display it backwards.
#include<stdio.h> void main() { char line[80]; int i, l=0; printf("Write a line: \n "); gets(line); ...
C Programming Binary Search Tree (BST) implementation insert, delete and recursive travarse (inorder, preorder, postorder)
#include <stdio.h> #include <stdlib.h> struct btnode { int value; struct btnode *l; struct...
0 comments:
Post a Comment