4-MUSTAQIL ISH.
3-VARIANT 1-JADVAL
SATRNI TESKARISINI TOPADIGAN DASTUR TUZING
#include
#include
using namespace std;
int main(){
int n;
char a[100];
gets(a);
int s=strlen(a);
for(int n=s;n>=0;n--){
cout << a[n] ;
}
cout<< endl;
return 0;
}
2-TOPSHIRIQ
CHAR TURIDAGI A SATRNI JUFT O’RINDA TURGAN GAPLARIDAN KEYIN
B SATRNI TOQ O’RINDA TURGAN GAPLARINI QO’SHADIGAN DASTUR
TUZING
#include
#include
using namespace std;
int main(){
int n,i,b;
char a[100];
gets(a);
char a1[100];
gets(a1);
char *s = a+1;
strcat(s, a1+1);
cout << s << endl;
return 0;
}
Do'stlaringiz bilan baham: |