HelpMeOutAlways: C Programs
Showing posts with label C Programs. Show all posts
Showing posts with label C Programs. Show all posts

Saturday, August 25, 2018

C programming by Tutorial Point Pdf

Sunday, June 24, 2018

C Program Simple Calculator Using Switch Case(switch case example)
June 24, 20180 Comments
#include<stdio.h> main () {   int menu, add, sub, mult, quit, num1, num2;   float dvd,Num1,Num2;// Here Num1 and Num2 is declared for Division operaion   printf ("=======================================\n");   printf ("Simple Calculator for Addition And Subtraction");   printf ("=======================================\n");   printf ("1.Add\n");   printf ("2.Sub\n");   printf ("3.Multiplication\n");  ...
Reading Time:
5 Min

Friday, June 22, 2018

C program Simple Calculator Of Addition or Subtraction using Switch Case
June 22, 20180 Comments
Source Code #include<stdio.h> int main () {   int menu, add, sub, quit, num1, num2;   printf ("======================================================\n");   printf ("Simple Calculator for Addition And Subtraction");   printf ("======================================================\n");   printf ("1.Add\n");   printf ("2.Sub\n");   printf ("3.Quit\n");   printf ("Please Select what do you want?\n");  ...
Reading Time:
5 Min
C Switch Case Program (What Do You Want to Drink?) Simple Example for bignners
June 22, 20180 Comments
Source Code #include<stdio.h> main () {   int drink;   printf ("Hello!Sir\n");   printf ("What would you like to drink?\n");   printf ("1.Tea\n");   printf ("2. Coffe\n");   printf ("Please Select (1/2):\n");   scanf ("%d", &drink);   switch (drink)     {     case 1:       printf ("Tea! ok Sir, i will be right back ", drink);       break;  ...
Reading Time:
5 Min

Friday, June 15, 2018

C Program To Check The Number Whether It Is Even or Odd( Switch Case)
June 15, 20180 Comments
#include<stdio.h> main() { int num; printf("Enter Any Integer\n"); scanf("%d",&num); switch(num%2) { case 0: printf("%d is Even Number",num); break; case 1: printf("%d is Odd Number",num); break; } return 0; } Output: ...
Reading Time:
5 Min
C Program To Check Whether It Is Leap Year Or Common Year (Switch Case)
June 15, 20180 Comments
// C program to check whether it is leap or common year #include<stdio.h> main() { int year; printf("Enter Year:\n"); scanf("%d",&year); switch(num%4==0&&num%100!=0||num%400==0) { case 1: printf("Leap Year"); break; default: printf("common year"); } return 0; } Output ...
Reading Time:
5 Min

Wednesday, June 13, 2018

C Program To Check Whether it Is Vowel or Constant (Switch Case Example)
June 13, 20180 Comments
//Write a C program TO chEck WheatHer It iS VoWel Or CoNsTant #include<stdio.h> main() { char ch; printf("Enter any character:\n"); scanf("%c",&ch); switch(ch) { case 'a': case 'A' : printf("Its VOwel Baby!"); break; case 'e': case 'E' : printf("Its VOwel Baby!"); break; case 'i': case 'I' : printf("Its VOwel Baby!"); break; case 'o': case 'O' : printf("Its VOwel Baby!"); break; case 'u': case 'U'...
Reading Time:
5 Min
Check Whether The Number Is Positive, Negative Or Zero With Switch Statement
June 13, 20180 Comments
#include<stdio.h> main() { int num; printf("Enter any Number To Check It is Positive or Negative:\n"); scanf("%d",&num); switch(num>0) { case 1: printf("%d is positive number",num); break; case 0: switch(num<0) { case 1: printf("%d is negative number",num); break; case 0: printf("%d is zero",num); break; } break; } return 0; } ...
Reading Time:
5 Min

Sunday, June 10, 2018

ATM Program In C language (SHows Notes of 5000,1000,500,100,50 and 10)
June 10, 20181 Comments
Here you can find the source code of ATM Machine Program Transaction In C language by HelpMeOutAlways. ATM Machine Program Source Code  #include <stdio.h> unsigned long int amount = 50000, depositS; //Number Of Notes Available in The ATM Machine, down below statements unsigned long int FiveThousandNotes = 50; unsigned long int ThousandNotes = 50; unsigned long int FiveHundredNotes = 50; unsigned long int OneHundredNotes = 50; unsigned...
Reading Time:
5 Min

Sunday, June 3, 2018

C Program To Find Maximum Among Three Numbers(Integers) Using Nested if-else Statement
June 03, 20180 Comments
//find maximum number among three integers #include<stdio.h> main() { int n1,n2,n3,max; //Declaration of variables printf("Enter any three integers:\n"); scanf("%d%d%d",&n1,&n2,&n3);// Read three numbers from user if(n1>n2) //let(condition 1) { if(n1>n3)//let (condition 2) { max=n1;} //if condition 1 and 2 are true then n1 is maximum else{ max=n3; //if condition 1 is true but condition 2 is not...
Reading Time:
5 Min

Tuesday, May 29, 2018

C Multiplication Program Input from User
May 29, 20180 Comments
Source Code // Simple multiplication Program #include<stdio.h> main() { int n,i; printf("Enter any Integer Num:"); scanf("%d",&n); for(i=1;i<=10;i++) { printf("%d * %d= %d\n",n,i,n*i); } return 0; } Output of Program ...
Reading Time:
5 Min
Factorial C Program Input From User
May 29, 20180 Comments
//Factorial program #include<stdio.h> main() { int num,fact=1,i; printf("Enter a number to check its factorial:\n"); scanf("%d",&num); for(i=1;i<=num;i++) { fact=fact*i; } printf("fact of %d is=%d",num,fact); return 0;} OUTPUT ...
Reading Time:
5 Min
C Multiplication Table Starting and Ending Point
May 29, 20180 Comments
//Multiplication Table oF desite #include <stdio.h> int main() {     int n, i,start, range;     printf("Enter an integer: ");     scanf("%d",&n);     printf("Enter the Start: ");     scanf("%d", &start);     printf("Enter the range: ");     scanf("%d", &range);     for(i= start; i <= range; ++i)     {         printf("%d...
Reading Time:
5 Min

@way2themes