Numeric Patterns in C Program
* * * * * * * * * * * * * * * #include<stdio.h> main() { int i,j; for(i=1;i<=5;i++) { for(j=1;j<=i;j++) { printf("* "); } printf("\n"); } } …
Numeric Patterns in C Program Read More* * * * * * * * * * * * * * * #include<stdio.h> main() { int i,j; for(i=1;i<=5;i++) { for(j=1;j<=i;j++) { printf("* "); } printf("\n"); } } …
Numeric Patterns in C Program Read More/*Factorial*/ #include<stdio.h> main() { int c, n, f = 1; printf("Enter a number to calculate its factorial\n"); scanf("%d", &n); for (c = 1; c <= n; c++) f = f …
Factorial of any Number Read MoreMalware Malware is a computer program intentionally designed to infiltrate and damage computer without the user consent. A wide variety of types of malware exist including computer virus, worms, Trojan …
Malware Read More// using strlen length of word eg:wildcat ans: 7 #include<stdio.h> #include<conio.h> #include<string.h> main() { char msg[20]; int len; printf("Input message:"); scanf("%s",msg); { len=strlen(msg); printf("Length of the message=%d",len); } } // …
String Functions in C program Read More//read five positive number using array find least among them #include<stdio.h> #include<conio.h> main() { int i,num[5],least; for(i=0;i<5;i++) { printf("Input positive numbers"); scanf("%d",&num[i]); } least=num[0]; for(i=0;i<5;i++) { if(num[i]<least) { least=num[i]; } …
Read five positive number using array find least among them Read More//multiplication of two numbers using function #include<stdio.h> #include<conio.h> int mul(int,int); main() { int a,b,pro; printf("Input two integer numbers:"); scanf("%d%d",&a,&b); pro=mul(a,b); printf("Multiplication of two integer=%d",pro); getch(); } int mul(int x, int …
Multiplication of two numbers using function in C Program Read More//Add Two Matrices #include <stdio.h> int main() { int r, c, a[100][100], b[100][100], sum[100][100], i, j; printf("Enter the number of rows (between 1 and 100): "); scanf("%d", &r); printf("Enter the …
Add Two Matrices in C-Program Read More#include <stdio.h> ///for input output functions like printf, scanf #include <stdlib.h> #include <conio.h> #include <windows.h> ///for windows related functions (not important) #include <string.h> ///string operations /** List of Global Variable …
Employee Record Management System in C Program Read More#include<windows.h> #include<stdio.h> #include<conio.h> #include <stdlib.h> #include<string.h> //contains strcmp(),strcpy(),strlen(),etc #include<ctype.h> //contains toupper(), tolower(),etc #include<dos.h> //contains _dos_getdate #include<time.h> #define RETURNTIME 15 char catagories[][15]={"Computers","Management","Science","Aviation","Humanities","Architecture"}; void returnfunc(void); void mainmenu(void); void addbooks(void); void deletebooks(void); void …
Library Management System in C Program Read More#include <stdio.h> unsigned long amount=1000, deposit, withdraw; int choice, pin, k; char transaction ='y'; main() { while (pin != 1234) { printf("ENTER YOUR SECRET PIN NUMBER:"); scanf("%d", &pin); if (pin …
ATM transaction in C program Read More