0

How to add Full stop after number in the given cpp program

this should b the output of program 1,2,3,4,5,6,7,8. here you see that after numbers there is coma(,) but except 8 there should be full stop ( . ) ... use while loop in cpp please help 🙁🙁 tomorrow is my assignment i need to do it in anycase plz help # the program is this on 👇 #include<iostream> #include <conio.h> using namespace std; int main () { int i =1; while(i <=8) {cout<<i <<","; i++;} getch(); } the output is 1,2,3,4,5,6,7,8, but i want that after 8 this" , " becomes fullstop " . "

9th Nov 2017, 3:50 PM
Abdul Wahab
Abdul Wahab - avatar
6 Answers
+ 2
but the output is still this one 1,2,3,4,5,6,7,8,.
9th Nov 2017, 4:04 PM
Abdul Wahab
Abdul Wahab - avatar
+ 1
still got the same Output 😭😭😭
9th Nov 2017, 4:09 PM
Abdul Wahab
Abdul Wahab - avatar
0
and i want output like this 1,2,3,4,5,6,7,8.
9th Nov 2017, 4:05 PM
Abdul Wahab
Abdul Wahab - avatar
0
thanks Alooot Broo its worked😍😘😘😍
9th Nov 2017, 4:18 PM
Abdul Wahab
Abdul Wahab - avatar
0
lovee u soooo much 😍😊😍😊😍😊
9th Nov 2017, 4:18 PM
Abdul Wahab
Abdul Wahab - avatar