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)
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...
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 Infix To Pretfix Conversation
# include <stdio.h> # include <string.h> # define MAX 20 void infixtoprefix(char infix[20], char prefix[20]); void reverse(...
Using structure, input some students' Name, Id and CGPA and sort them by Name, Id and CGPA respectively.
#include<stdio.h> #include<string.h> #define SIZE 5 struct diu_cse { char name[20]; int id; float cgpa; }; stru...
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; ...
C programming code for Prime number.
#include<stdio.h> int main() { int n, i = 3, count, c; printf("Enter the number of prime numbers required\n")...
0 comments:
Post a Comment