- Include Iostream Using Namespace Std Int Main 101 0 Include Iostream Using Namespace Std Int Main Sum 50 1 (34.25 KiB) Viewed 60 times
#include using namespace std; int main() { 101 0 } #include using namespace std; int main() { Sum 50
-
- Posts: 43759
- Joined: Sat Aug 07, 2021 7:38 am
#include using namespace std; int main() { 101 0 } #include using namespace std; int main() { Sum 50
#include<iostream> using namespace std; int main() { 101 0 } #include<iostream> using namespace std; int main() { Sum 50 int sum=0; for (int k-0;k<-20; ++k) 1 if (k%5-0) sum+k; } cout <<"sum="<< sum<<endl; return 0; } Q2 Identify and correct the error(s) in each of the following: (2x3 = 6 marks) For (x= 100, x >= 1, --X) cout << x << endl; for(x-100; x>-1;--x) cout<<x<<endl; float k-12.8; or double k=12.8; int x = 1.y=100; while (x< 100){ x++; y=-; 1 cout << x << " " <<y << endl; int K=12.8;