M

@Mohan

Prime Number Checking Using Class

C++
5 years ago
#include <iostream> using namespace std; int c=0; class prime{ int n,i; public: prime(int a) {

Student Mark List Using Class (Modified)

C++
5 years ago
#include<iostream> #include<string.h> using namespace std; //#include<conio.h> int tot=0,j; float avg; class student { int rollno,subjects; char stud_name[20];

Find the Gross pay & Net pay for Employee Using Class

C++
5 years ago
#include<iostream> using namespace std; int health=200, tax=300; class employee { int basicpay, emp_id, hra, da, gpay, npay, deduction; char emp_name[20]; public: void getdata();

Positive or Negative Number Checking

C++
5 years ago
#include <iostream> using namespace std; class positive { int num; public: positive(int n) { num=n;

Odd or Even Number Checking Using Class

C++
5 years ago
#include <iostream> using namespace std; int temp=0; class generation { int min,max; public: generation(int m1, int m2) { min=m1;

Student Mark List Using Class

C++
5 years ago
#include<iostream> #include<string.h> using namespace std; class student { int rollno, subjects; char stud_name[20]; int *marks; public:

Odd and Even Number Generation

C++
5 years ago
#include <iostream> using namespace std; int main() { int n,min,max; cout<<"\nOdd and Even Number Generation."; cout<<"\n--------------------------------"; cout<<"\n\nEnter the Minimum Range : "; cin>>min; cout<<"\nEnter the

Odd or Even Number Checking

C++
5 years ago
#include <iostream> using namespace std; int main() { int n; cout<<"\nOdd or Even Number Checking."; cout<<"\n----------------------------"; cout<<"\n\nEnter any one Number : "; cin>>n; if(n%2==0)

Largest among three numbers

C++
5 years ago
#include <iostream> using namespace std; int main() { int a,b,c,cho; cout<<"\n Largest among three numbers..."; cout<<"\n ------------------------------"; cout<<"\n\n Enter the Three numbers : "; cin>>a>>b>>c; cout<<"\n\nChoose t

String Conversion

C
6 years ago
#include<stdio.h> int main() { char str[50]; int i; printf("\nEnter a string : "); scanf("%s",&str); for(i=0;str[i]!='\0';i++) { if(str[i]>='a'&&str[i]<='z')

File Copy

C
6 years ago
#include <stdio.h> int main() { FILE *f,*c; char f1[50],f2[50],ch; printf("\n\t\tFile Copying."); printf("\n\t\t------------"); printf("\nEnter the file name to copy :"); scanf("%s",f1); if((f=fopen(f1,"r"))==NULL) {

MultiplicationTable.c

C
6 years ago
#include <stdio.h> int main() { int range,num,i; printf("\n\tPrinting Multiplication Table."); printf("\n\t-----------------------------"); printf("\nWhich Number table You want : "); scanf("%d",&num); printf("\nWhich Range

Student Mark List

C
6 years ago
#include <stdio.h> struct student { char name[30]; int rollno; int m[3]; int t; float avg; }s; int main()

Palindrome Checking

C
6 years ago
#include<stdio.h> #include<string.h> int main() { char str[30]; int i,n,c; printf("\n\t\tPalindrome Checking."); printf("\n\t\t-------------------"); printf("\nEnter the string : "); scanf("%s",&str);

Sorting Names

C
6 years ago
#include<stdio.h> #include<string.h> int main() { int i,j,n; char a[20][30],b[30]; printf("\n\tSorting Names."); printf("\n\t-------------"); printf("\nHow many names your want to enter : "); scanf("%d",&n);

Multiplication Table

C
6 years ago
#include <stdio.h> int main() { int range,num,i; printf("\n\tPrinting Multiplication Table."); printf("\n\t-----------------------------"); printf("\nWhich Number table You want : "); scanf("%d",&num); printf("\nWhich Range