This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
struct student | |
{ | |
char name[50]; | |
int roll; | |
float marks; | |
} s[100]; | |
int main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include<conio.h> | |
using namespace std; | |
void Age(int); | |
int main() | |
{ | |
int age; | |
cout<<"enter your age"; | |
cin>>age; | |
Age(age); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
int main() | |
{ | |
int i, a, l, n; | |
cout<<"Enter total number of elements"; | |
cin>>n; | |
cout<<"Enter first number"; | |
cin>>a; | |
l = n; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
//using namespace std;(for codeblocks user) | |
int main() | |
{ | |
int a[2][3], b[2][3], c[2][3],i,j; | |
cout<<"enter elements of first matrix"<<endl; | |
for (i=0;i<2;i++) | |
{ | |
for (j=0;j<3;j++) | |
{ |