0

Pease help to creat c++ program!?

How to write a c++ program that prints the numbers from 0 ( zero ) to 50 increasing by 5 , when the number reaches 25 there must be written " twenty five " ( Must be used " while " loop)

27th May 2018, 10:08 AM
ATARI
ATARI - avatar
5 Antworten
+ 6
Please post your attempts at solving the problem before asking for code.
27th May 2018, 10:35 AM
Hatsy Rei
Hatsy Rei - avatar
27th May 2018, 10:37 AM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 4
27th May 2018, 1:14 PM
Tim Thuma
Tim Thuma - avatar
+ 2
Ohh yah but my phone keyboard is so much wrost.. 😁
27th May 2018, 1:15 PM
BALOOCH ANZARAHMEDKHAN ZAKIRAHMEDKHAN
BALOOCH ANZARAHMEDKHAN ZAKIRAHMEDKHAN - avatar
+ 1
While(i<=50) { cout<<i; if(i==25) { cout<<twenty-five ; } } Some syntax errors in this because i am just explaining. The if statement will work here to print twenty-five.
27th May 2018, 1:12 PM
BALOOCH ANZARAHMEDKHAN ZAKIRAHMEDKHAN
BALOOCH ANZARAHMEDKHAN ZAKIRAHMEDKHAN - avatar