0

Write a c++ program to increment values from 1 to 10 using increment operator?

22nd Nov 2016, 12:37 PM
rag
rag - avatar
3 ответов
+ 2
#include <iostream> using namespace std; int main() { int i=1; While i <10 {++i;} return 0;}
22nd Nov 2016, 12:44 PM
Саша Савчук
Саша Савчук - avatar
0
#include<iostream> using namespace std; Int main() { int i=1; do i++ while(x!=10) } //it's impossible to write code on IPad
23rd Nov 2016, 12:04 AM
Eduard Pelekh
Eduard Pelekh - avatar
- 3
#include <iostream> using namespace std; int main() { int i=1; ++i; ++i; ++i; ++i; ++i; ++i; ++i; ++i; ++i; return 0;}
22nd Nov 2016, 12:41 PM
Seckar
Seckar - avatar