A

@Aswini25

Armstrong

C++
5 years ago
#include<iostream> using namespace std; class armstrong { int n,s,t,r; public: void get(); void check(); }; void armstrong::get()

Positive or negative

C++
5 years ago
#include <iostream> using namespace std; class check { int a; public: void get(); void put(); }; void check::get()

Odd or even

C++
5 years ago
#include<iostream> using namespace std; class generate { int n; public: void getdata(); void process(); }; void generate::getdata()

Student marklist

C++
5 years ago
#include<iostream> using namespace std; class student { char name[10]; int rollno,m1,m2,m3,tot; float avg; public: void getdata(); void process();

odd or even

C++
5 years ago
#include<iostream> using namespace std; class generate { int num; public: void getdata(); void check(); }; void generate::getdata()

String rev and cat

C
6 years ago
#include<stdio.h> #include<string.h> void main() { char a[100],b[100],c[100]; int i,j,n; printf("\n Enter the first string:"); scanf("%s",&a); printf("\n Enter the second string:"); scanf("%s",&c);

Reverse a number

C
6 years ago
#include<stdio.h> void main() { int n,m,r; printf("\n Enter the number to reverse:"); scanf("%d",&n); m=n; printf("\n"); while(m>0) {

Strrev and strcat

C
6 years ago
#include<stdio.h> #include<string.h> void main() { char a[50],b[50]; printf("\n Enter the first string:"); scanf("%s",&a); printf("\n Enter the second string:"); scanf("%s",&b); printf("\n The String Reverse is %s",strrev(a));

Number pattern

C
6 years ago
#include<stdio.h> void main() { int i,j,r; printf("\n Enter the number of rows:"); scanf("%d",&r); for(i=1;i<=r;++i) { printf("\n"); for(j=1;j<=i;++j)

File copy.c

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

Sorting names.c

C
6 years ago
#include<stdio.h> #include<string.h> void main() { int i,j,n; char a[20][30],b[30]; printf("\n\tSORTING THE NAMES"); printf("\nEnter the no. of names:"); scanf("%d",&n); printf("\n");

Multiplication table.c

C
6 years ago
#include<stdio.h> void main() { int r,n,i; printf("\n\tMULTIPLICATION TABLES"); printf("\nEnter a number for which you want the tables:"); scanf("%d",&n); printf("\nEnter the range upto which you want the tables:"); scanf("%d",&r); printf("\n\tTABLES FOR %d ",n);

Student mark list.c

C
6 years ago
#include<stdio.h> void main() { struct stud { char n[15]; int r,m[3],t; float a; }s[10]; int i,j,p;

Palindrome.c

C
6 years ago
#include<stdio.h> #include<string.h> void main() { char a[30],b[30]; printf("\n\tPALINDROME"); printf("\n\t----------"); printf("\nEnter a string:"); scanf("%s",a); strcpy(b,a);