Decision making statements if and if…else in C
Decision-making statements or Control statements will help us to control the program execution based on a certain condition. In many situations, we need to choose one option among the multiple options.
Basics of C / C / C language / C tutorial
by Venkatesh Macha · Published December 9, 2018 · Last modified December 14, 2018
Decision-making statements or Control statements will help us to control the program execution based on a certain condition. In many situations, we need to choose one option among the multiple options.
C codes / C language / patterns / pyramid pattern / Uncategorized
by Venkatesh Macha · Published July 11, 2015 · Last modified February 27, 2017
Write a C Program to print below pattern ( Pyramid Star pattern ) : * * * *...
basic C programs / C codes / C interview programs / C language / Mathematical C programs / Simple C programs / Uncategorized
by Venkatesh Macha · Published October 12, 2014 · Last modified February 27, 2017
/******************Program****************/
1 |
#include<stdio.h><br />void main(void)<br />{<br />int a,b;<br />printf("Enter Value for a :");<br />scanf("%d",&a);<br />printf("Enter Value for b :");<br />scanf("%d",&b);<br /><br />printf("Sum=%dn",a+b);<br />printf("Difference=%dn",a-b);<br />printf("Product=%dn",a*b);<br />printf("Quotient=%dn",a/b);<br />printf("Remainder=%dn",a%b); <br /><br />}<br /> |
/******************OUTPUT****************/ Related Reading : C program to test Leap year C program to Find Area and...
C codes / C language / Elements of C language / Uncategorized
by Venkatesh Macha · Published July 8, 2014 · Last modified February 27, 2017
Program : #include<stdio.h> int main(void) { int a,b,max; printf(“Enter values for a and b...
/********** a power b program in C ***************/ #include<stdio.h> main() { int a,b,r; printf(“Enter two values :”); scanf(“%d%d”,&a,&b); r=a;...
basic C programs / C codes / C language / Linux / Simple C programs / String based C programs / Uncategorized
by Venkatesh Macha · Published April 10, 2014
/********* Program **********/ #include<stdio.h>#include<ctype.h> main(){ char ch; printf(“Enter character to test :”); scanf(” %c”,&ch); if(isalpha(ch)) //is alpha available...
basic C programs / C codes / C interview programs / C language / Simple C programs / Uncategorized
by Venkatesh Macha · Published April 10, 2014 · Last modified February 27, 2017
Factorial :In mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. For...
basic C programs / C codes / C interview programs / C language / Simple C programs / String based C programs / Uncategorized
by Venkatesh Macha · Published April 7, 2014
/******* Program **********/ #include<stdio.h>#include<string.h>main(){ char str[20]; int i,j,len,cnt; cnt = 0; printf(“Enter string to test :”); scanf(“%s”,str);...
Basics of C / C language / C tutorial / Uncategorized
by Venkatesh Macha · Published April 5, 2014 · Last modified June 25, 2017
The best way of learning programming language is by writing programs. before we are going to write any...
basic C programs / C language / C tutorial / Elements of C language / Uncategorized
by Venkatesh Macha · Published April 1, 2014 · Last modified February 27, 2017
Datatypes List in C language : Data Type Format Specifiers Size Range Signed char %c 1Byte -128 to...
Basics of C / C / C language / C tutorial
Decision making statements if and if…else in C
9 Dec, 2018
Admin / RTP / rtpengine / ubuntu / Uncategorized / VOIP
Installing RTPEngine on Ubuntu 14.04
17 Aug, 2015