#include<iostream.h>
#include<conio.h>
#include<string.h>
void swap(int *,int *);
class a
{
public:
char name[20],class[20];
int roll,s1,s2,s3,total;
void input()
{
cout<<"enter name==>";
cin>>name;
cout<<"enter roll no & marks in three subjects==>";
cin>>roll>>s1>>s2>>s3;
total=s1+s2+s3;
}
void print()
{
cout<<name;
cout<<"t"<<roll<<"/t"<<total;
}
}
s[50];
void main()
{
int i,n;
clrscr();
cout<<"enter no of student==>";
cin>>n;
cout<<"enter the into==>";
for(i=0;i<n;i++)
s[i].total==s[i=1].total)
{
if(p-1==0)
cout<<"1";
else
cout<<p-1;
}
else
cout<<p;
cout<<"\n";
p++;
}
getch();}
void swap(int *a,int *b)
{
int c=*a;
*a=*b;
*b=c;
}
void sqrt(int n)
{
int p,i;
char name[20];
for(p=1;p<n;p++)
for(i=0;i<n-p;i++)
if (s[i].total<s[i+t].total)
{
strcpy(sname,s[i].name);
strcpy(s[i].name,s[i+1].name);
strcpy(s[i+1].name,name);
swap(&s[i].roll,&s[i+1].roll);
swap(&s[i].s1,&s[i+1].s1);
swap(&s[i].s2.&s[i+1].s2);
swap(&s[i].s3,&s[i+1].s3);
swap(&s[i].total & s[i+1].total);
}
}
Yes, do write. That's what you always have to do when you have got a homework-program.
program to find maximum of two numbers using pointers
VBnet program to find the prime numbers between 100 to 200?
Yes, do write, or if you're too lazy to your homework, use google.
Did you know that memory allocation is not needed to display the matrix? However, the C program is to find the sum of all the elements.
write a c program to display marks,total,average,grade using union
One would be able to find information on becoming an exchange student from multiple sources such as senior students who have completed the exchange student program before, the teacher in charge of organising the exchange program, or from online websites that are dedicated to the exchange student program.
write a vb program to find the magic square
unsigned find (const char* str, char c) { unsigned total; total = 0; if (str!=NULL) while (*str) { if (*str++==c) ++total; } return total; }
For first find an example program.
Write a program to find the grade obtained by the students of a class
Yes, do write. That's what you always have to do when you have got a homework-program.
CitiBank has a student banking program. On the web you can find it at CitiBank.com/Campus.
write an assembly language program to find sum of N numbers
The collector will write you a letter.
Write a c program to compute the surface area and volume of a cube
int total = 0; int n; for( n = 112; n <= 212; ++n) { total += n; } printf("%d\n", total);