forked from thakursaurabh1998/cpp
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcincout.cpp
44 lines (39 loc) · 847 Bytes
/
cincout.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
char ch;
int count=0;
// do {
// ch = cin.get();
// cout.put(ch);
// count++;
// cout << "No. of char: " << count << endl;
// } while(ch!='0');
// cout << "Out of loop" << endl;
// char *str1 = "C++";
// char *str2 = "Programming";
// int m = strlen(str1);
// int n = strlen(str2);
// for(int i=1;i<=n;i++)
// {
// cout.write(str2,i);
// cout << endl;
// }
// for(int i=n;i>0;i--)
// {
// cout.write(str2,i);
// cout << endl;
// }
// cout.write(str1,m).write(str2,n);
// cout << endl;
// cout.write(str1,10);
int x = 155;
int y = 50;
cout.width(5);
cout << x ;
cout.width(10);
cout << y << endl;
return 0;
}