+ 1
What should I add to print 8 times "Today is a beautiful day "
#include <stdio.h> int main() { printf("Today is a beautiful day.\n"); int main(); return 0; }
10 Réponses
+ 2
Is this C++ or C?
+ 4
For C++
#include <iostream>
using namespace std;
int main()
{
int num = 1;
while (num <= 8) {
cout << "Today is a beautiful day" << endl;
num = num + 1;
}
return 0;
}
+ 2
https://code.sololearn.com/cM02YiSgNsSq/?ref=app
Hi Dostonbek just see this, you can understand better .
+ 1
C++
+ 1
If its C++, here is how:
#include <iostream>
using namespace std;
int main()
{
int num = 1;
while (num <= 8) {
cout << "Today is a beautiful day" << endl;
num = num + 1;
}
return 0;
}
+ 1
I just thought it was C++, but well then you're welcome.
+ 1
Thank you
0
tilni ozbekcha qisa bo‘ladimi
0
Tuwunmadm , tilini nma ahamiyati bor 🤔
0
If c++ then
#include<iostream>
Void main(){
for(int i=0;i<8;I++){
Std::cout<<"Today is
A wonderful
Day\n";
}
}